Solved Reload crash

Discussion in 'Plugin Development' started by Kermit_23, Aug 31, 2017.

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

    Kermit_23

    Whenever i do reload somehow my plugin manages to close the server without any crashes and i can't find the reason of this! Could someone take a look at my code and see whats the problem? Thank you!
    https://github.com/rafedup27/AntiBot-Ultra
     
  2. Offline

    Zombie_Striker

    @Kermit_23
    Does it crash when the plugin is being enabled, or when the plugin is being disabled? This determines where this next step will take place:

    Once you figure out where the issue is, comment out the entire method. Does this fix the problem: If so, one of the lines in that method is breaking the plugin. From there, slowly re-add each line until the problem re-occurs. Once it does, you will know which line is causing the problem.

    If, however, commenting the whole method does not fix the problem, it may be something else in the plugin that is closing the server. At this point, comment out all the lines in your main class. Does this fix your problem? If not, than the issue is not with your plugin.
     
  3. Offline

    Kermit_23

    when disabling it crashes! I will try commenting the whole class! Thanks!
    EDIT: found out what causes this problem! ConsoleSuppress basically the one that suppresses the logs whenever a bot attack is detected! I really don't know why this logger causes the issue! Could someone point out why it does this? Thank you!
     
    Last edited: Aug 31, 2017
  4. Offline

    Zombie_Striker

    @Kermit_23
    It may be an issue with creating two ConsoleSurpress instances when you reload. Try making sure that the current filter is not an instance of ConsoleSurpress before you create a new filter.
     
  5. Offline

    Kermit_23

    Fixed! I found out that case DISABLED and LISTENING was stopping the server from starting again after reload. strange...
     
Thread Status:
Not open for further replies.

Share This Page