My plugin don´t work after I re-enter in the server

Discussion in 'Plugin Development' started by M4UR0, Aug 2, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    M4UR0

    My plugin commands only work after the reload, if I leave and re-enter to have to reload to the commands work ... What did I do please help
     
  2. Offline

    thetrendies

    Please post the code as long as the console.
     
  3. Online

    timtower Administrator Administrator Moderator

    @M4UR0 Code in http://pastebin.com ?
    And this is when? After you export it? Make sure to stop the server before you export
     
  4. Offline

    M4UR0

  5. Offline

    Vextricity

    Do the event listeners still work after you log out and log back in? And why are you implementing listener and registering the main class if there are no events listeners in it?
     
  6. Offline

    Zombie_Striker

    @M4UR0
    1. You just posted one small class from your plugin, but your plugin references about 15 different classes. Did you forget to post the relevant classes?
    2. Why are you implementing listener to the main class, yet you have no events in it?
    3. Why are you even using multiple classes for commands and events? This could all be done with one class.
    Please post your server start-up and all logs. Does it print out any errors? Does your plugin even load when the server starts up?
     
  7. Thats not true. I always export when the server is running and then just run the command /rl and it works
     
    Eos likes this.
  8. Online

    timtower Administrator Administrator Moderator

    Never said that you MUST, but it generally is better for the server with memory leaks etc.
     
  9. Offline

    Eos

    Memory leaks are the worst right beside sql injections.
     
  10. Offline

    Tecno_Wizard

    @Eos, Java makes memory leaks hard to come by. Start doing things in C, and you will miss Java.
     
    timtower likes this.
  11. Offline

    raymart23

    did you get error logs at console ? when the commands didn't worked ?
     
Thread Status:
Not open for further replies.

Share This Page