-
re: Sierra [R63, JAVA, MySQL (JDBC), Netty]
Alex, I'm not sure if you are aware or not, but your github has been taken down..
Hopefully you are still working on this product, I am really enjoying following your development.
-
re: Sierra [R63, JAVA, MySQL (JDBC), Netty]
-
re: Sierra [R63, JAVA, MySQL (JDBC), Netty]
-
re: Sierra [R63, JAVA, MySQL (JDBC), Netty]
Quote:
Originally Posted by
Pure
Updated them myself! :)
-
re: Sierra [R63, JAVA, MySQL (JDBC), Netty]
OK! I got a retro hotel with a root server: Weiterleitung zu HabIslands and I got the sierra cms and the sierra emulator but the emulator is verry buggy could anybody help me coding the emulator or quackster could you help me with the emulator the one which would help me would get a admin position. ITS VERY IMPORTANT! I hope somebody could help me because its reallly important!
Greetz Mysterious
-
re: Sierra [R63, JAVA, MySQL (JDBC), Netty]
Quote:
Originally Posted by
XxMysteriousXx
OK! I got a retro hotel with a root server:
Weiterleitung zu HabIslands and I got the sierra cms and the sierra emulator but the emulator is verry buggy could anybody help me coding the emulator or quackster could you help me with the emulator the one which would help me would get a admin position. ITS VERY IMPORTANT! I hope somebody could help me because its reallly important!
Greetz Mysterious
It's not intended for production use at this stage...
-
re: Sierra [R63, JAVA, MySQL (JDBC), Netty]
It's assignment week at the moment, sorry! ;3
-
re: Sierra [R63, JAVA, MySQL (JDBC), Netty]
OK I hope that you have later time Quackster but could you give me your msn name? Would be great..
-
re: Sierra [R63, JAVA, MySQL (JDBC), Netty]
Alex this is looking awesome, one of your best projects so fare! :D
-
re: Sierra [R63, JAVA, MySQL (JDBC), Netty]
can you upload it on mediafire -.- your links aren't working
-
re: Sierra [R63, JAVA, MySQL (JDBC), Netty]
Updates
NOTE: All normal features will be coded, this just gives you the ability to code cool addons! :D
I would like to present a major feature that Sierra now has. You can now create a plugin for Sierra instead of editing the actual source of Sierra. The system is similar to Bukkit, imports jars from the plugins folder and it's called upon whenever a packet is received or by command.
It has access to all the classes Sierra uses, simply by creating the whole Sierra project to a JAR file, (not runnable jar, oh god, just don't -- that's only for running it by command prompt) and importing Sierra.jar as a library file.
Example of a plugin;
Code:
package net.quackster.mycredits;
import sierra.*;
import sierra.composers.*;
import sierra.packethelper.*;
import sierra.plugin.*;
import sierra.network.clients.Session;
public class MyCredits implements ISierraPlugin
{
/*
* Private variables
*/
private PluginData mPluginData;
@Override
public int onHeader() {
return Incoming.GetCredits;
}
@Override
public void onEnable()
{
/*
* Get the plugin data from configuration
*/
this.mPluginData = SierraEnvironment.getPluginManager().getPlugins().get(this);
/*
* Log start up
*/
this.log("Starting up " + mPluginData.getPluginName() + "...");
this.log("Created by Quackster!");
}
@Override
public void onHandlePacket(Session Session, ClientMessage Request) {
ServerMessage Message = new ServerMessage();
Message.Initialize(Outgoing.Alert);
Message.AppendString("You currently have " + Session.GetHabbo().Credits + " credits!");
Message.AppendString("");
Session.Send(Message);
}
@Override
public Boolean onCommand(Session Session, String Command, String[] Args)
{
if (Command.equals(":jajaja"))
{
ServerMessage Message = new ServerMessage();
Message.Initialize(Outgoing.Talk);
Message.AppendInt32(Session.GetHabbo().Id);
Message.AppendString("ja ja ja");
Message.AppendInt32(0);
Message.AppendInt32(0);
Message.AppendInt32(0);
Session.Send(Message);
return true;
}
return false;
}
/*
* Logger void
*/
public void log(Object Text) {
Logging.writeLine("[" + mPluginData.getPluginName() + "] " + Text);
}
}
I'll push all updates on GitHub. Thanks for reading.
Oh and once you create the following plugin, you need to create the a folder the same name as the jar file without the extension and create the file, pluginFile.ini
Code:
plugin.class.path=net.quackster.mycredits.MyCredits
plugin.version=0.1
plugin.name=MyCredits
-
re: Sierra [R63, JAVA, MySQL (JDBC), Netty]
Quote:
Originally Posted by
Quackster
Updates
NOTE: All normal features will be coded, this just gives you the ability to code cool addons! :D
I would like to present a major feature that Sierra now has. You can now create a plugin for Sierra instead of editing the actual source of Sierra. The system is similar to Bukkit, imports jars from the plugins folder and it's called upon whenever a packet is received or by command.
It has access to all the classes Sierra uses, simply by creating the whole Sierra project to a JAR file, (not runnable jar, oh god, just don't -- that's only for running it by command prompt) and importing Sierra.jar as a library file.
Example of a plugin;
Code:
package net.quackster.mycredits;
import sierra.*;
import sierra.composers.*;
import sierra.packethelper.*;
import sierra.plugin.*;
import sierra.network.clients.Session;
public class MyCredits implements ISierraPlugin
{
/*
* Private variables
*/
private PluginData mPluginData;
@Override
public int onHeader() {
return Incoming.GetCredits;
}
@Override
public void onEnable()
{
/*
* Get the plugin data from configuration
*/
this.mPluginData = SierraEnvironment.getPluginManager().getPlugins().get(this);
/*
* Log start up
*/
this.log("Starting up " + mPluginData.getPluginName() + "...");
this.log("Created by Quackster!");
}
@Override
public void onHandlePacket(Session Session, ClientMessage Request) {
ServerMessage Message = new ServerMessage();
Message.Initialize(Outgoing.Alert);
Message.AppendString("You currently have " + Session.GetHabbo().Credits + " credits!");
Message.AppendString("");
Session.Send(Message);
}
@Override
public Boolean onCommand(Session Session, String Command, String[] Args)
{
if (Command.equals(":jajaja"))
{
ServerMessage Message = new ServerMessage();
Message.Initialize(Outgoing.Talk);
Message.AppendInt32(Session.GetHabbo().Id);
Message.AppendString("ja ja ja");
Message.AppendInt32(0);
Message.AppendInt32(0);
Message.AppendInt32(0);
Session.Send(Message);
return true;
}
return false;
}
/*
* Logger void
*/
public void log(Object Text) {
Logging.writeLine("[" + mPluginData.getPluginName() + "] " + Text);
}
}
I'll push all updates on GitHub. Thanks for reading.
Oh and once you create the following plugin, you need to create the a folder the same name as the jar file without the extension and create the file, pluginFile.ini
Code:
plugin.class.path=net.quackster.mycredits.MyCredits
plugin.version=0.1
plugin.name=MyCredits
Did you get this idea from MC? ;)
-
re: Sierra [R63, JAVA, MySQL (JDBC), Netty]
Quote:
Originally Posted by
n0minal
Did you get this idea from MC? ;)
Yes I said the idea is from Bukkit. :P
-
re: Sierra [R63, JAVA, MySQL (JDBC), Netty]
Epic idea, Quackie! Can't wait for this..
-
re: Sierra [R63, JAVA, MySQL (JDBC), Netty]
Quote:
Originally Posted by
Quackster
Updates
NOTE: All normal features will be coded, this just gives you the ability to code cool addons! :D
I would like to present a major feature that Sierra now has. You can now create a plugin for Sierra instead of editing the actual source of Sierra. The system is similar to Bukkit, imports jars from the plugins folder and it's called upon whenever a packet is received or by command.
It has access to all the classes Sierra uses, simply by creating the whole Sierra project to a JAR file, (not runnable jar, oh god, just don't -- that's only for running it by command prompt) and importing Sierra.jar as a library file.
Example of a plugin;
Code:
package net.quackster.mycredits;
import sierra.*;
import sierra.composers.*;
import sierra.packethelper.*;
import sierra.plugin.*;
import sierra.network.clients.Session;
public class MyCredits implements ISierraPlugin
{
/*
* Private variables
*/
private PluginData mPluginData;
@Override
public int onHeader() {
return Incoming.GetCredits;
}
@Override
public void onEnable()
{
/*
* Get the plugin data from configuration
*/
this.mPluginData = SierraEnvironment.getPluginManager().getPlugins().get(this);
/*
* Log start up
*/
this.log("Starting up " + mPluginData.getPluginName() + "...");
this.log("Created by Quackster!");
}
@Override
public void onHandlePacket(Session Session, ClientMessage Request) {
ServerMessage Message = new ServerMessage();
Message.Initialize(Outgoing.Alert);
Message.AppendString("You currently have " + Session.GetHabbo().Credits + " credits!");
Message.AppendString("");
Session.Send(Message);
}
@Override
public Boolean onCommand(Session Session, String Command, String[] Args)
{
if (Command.equals(":jajaja"))
{
ServerMessage Message = new ServerMessage();
Message.Initialize(Outgoing.Talk);
Message.AppendInt32(Session.GetHabbo().Id);
Message.AppendString("ja ja ja");
Message.AppendInt32(0);
Message.AppendInt32(0);
Message.AppendInt32(0);
Session.Send(Message);
return true;
}
return false;
}
/*
* Logger void
*/
public void log(Object Text) {
Logging.writeLine("[" + mPluginData.getPluginName() + "] " + Text);
}
}
I'll push all updates on GitHub. Thanks for reading.
Oh and once you create the following plugin, you need to create the a folder the same name as the jar file without the extension and create the file, pluginFile.ini
Code:
plugin.class.path=net.quackster.mycredits.MyCredits
plugin.version=0.1
plugin.name=MyCredits
That's so cool!
Looking at the code instantly reminded me of bukkit =)