Sierra ~ Java // Netty // MySQL // BoneCP // Plugin System (Like Bukkit!)

Page 34 of 103 FirstFirst ... 2426272829303132333435363738394041424484 ... LastLast
Results 496 to 510 of 1536
  1. #496
    Account Upgraded | Title Enabled! Pure is offline
    MemberRank
    May 2008 Join Date
    809Posts

    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.

  2. #497
    topkek amirite?? Leon is offline
    MemberRank
    May 2009 Join Date
    919Posts

    re: Sierra [R63, JAVA, MySQL (JDBC), Netty]

    His GitHub's now: https://github.com/quackster

    Thanks,

  3. #498
    Account Upgraded | Title Enabled! Pure is offline
    MemberRank
    May 2008 Join Date
    809Posts

    re: Sierra [R63, JAVA, MySQL (JDBC), Netty]


  4. #499
    Developer Quackster is offline
    DeveloperRank
    Dec 2010 Join Date
    AustraliaLocation
    3,476Posts

    re: Sierra [R63, JAVA, MySQL (JDBC), Netty]

    Quote Originally Posted by Pure View Post
    Updated them myself! :)

  5. #500
    Apprentice XxMysteriousXx is offline
    MemberRank
    May 2011 Join Date
    19Posts

    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

  6. #501
    "(still lacks brains)" NoBrain is offline
    MemberRank
    Sep 2011 Join Date
    United KingdomLocation
    2,658Posts

    re: Sierra [R63, JAVA, MySQL (JDBC), Netty]

    Quote Originally Posted by XxMysteriousXx View Post
    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...

  7. #502
    Developer Quackster is offline
    DeveloperRank
    Dec 2010 Join Date
    AustraliaLocation
    3,476Posts

    re: Sierra [R63, JAVA, MySQL (JDBC), Netty]

    It's assignment week at the moment, sorry! ;3

  8. #503
    Apprentice XxMysteriousXx is offline
    MemberRank
    May 2011 Join Date
    19Posts

    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..

  9. #504
    ส็็็็็็็ Bloodraven is offline
    MemberRank
    Sep 2009 Join Date
    AntarcticaLocation
    2,414Posts

    re: Sierra [R63, JAVA, MySQL (JDBC), Netty]

    Alex this is looking awesome, one of your best projects so fare! :D

  10. #505
    Member GemDG is offline
    MemberRank
    Jan 2012 Join Date
    60Posts

    re: Sierra [R63, JAVA, MySQL (JDBC), Netty]

    can you upload it on mediafire -.- your links aren't working

  11. #506
    Developer Quackster is offline
    DeveloperRank
    Dec 2010 Join Date
    AustraliaLocation
    3,476Posts

    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

  12. #507
    Web & Interaction Design Gangnam is offline
    MemberRank
    Dec 2010 Join Date
    Lincoln, UKLocation
    1,983Posts

    re: Sierra [R63, JAVA, MySQL (JDBC), Netty]

    Quote Originally Posted by Quackster View Post
    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? ;)

  13. #508
    Developer Quackster is offline
    DeveloperRank
    Dec 2010 Join Date
    AustraliaLocation
    3,476Posts

    re: Sierra [R63, JAVA, MySQL (JDBC), Netty]

    Quote Originally Posted by n0minal View Post
    Did you get this idea from MC? ;)
    Yes I said the idea is from Bukkit. :P

  14. #509
    topkek amirite?? Leon is offline
    MemberRank
    May 2009 Join Date
    919Posts

    re: Sierra [R63, JAVA, MySQL (JDBC), Netty]

    Epic idea, Quackie! Can't wait for this..

  15. #510
    Account Upgraded | Title Enabled! Harrison is offline
    MemberRank
    Mar 2009 Join Date
    417Posts

    re: Sierra [R63, JAVA, MySQL (JDBC), Netty]

    Quote Originally Posted by Quackster View Post
    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 =)



Advertisement