Error, Unknown

Discussion in 'Plugin Development' started by RustyDesigns, Jul 30, 2015.

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

    RustyDesigns

  2. Offline

    Freelix2000

    @RustyDesigns
    Are you expecting someone to take the time to compile the entire plugin, run it on their server, figure out exactly what its supposed to do and what is wrong with it? You can't just give a link to the project and say you have a problem. What is the plugin supposed to do? What is it doing instead? Is there an error? If so, post the stacktrace. You doing a little bit of explaining about your problem would be a million times more efficient than someone figuring it out with nothing to go on except the code and "I need help with my plugin.".
     
  3. Offline

    raymart23

    would you mind usse your plugin at your local server and tests if its working or not . if its not then you should paste the console error logs here
     
  4. Offline

    stormneo7

    You're listening onto HologramAPI prior to checking if the plugin exists.

    I also suggest that you add a Depend: variable into your plugin.yml as you're disabling the plugin either way when the requirements aren't loaded. Bukkit sends a more... 'noticeable' error message to the user.

    JavaPlugin.setEnabled() will not break the onEnable process. I suggest that you use a boolean instead of a void and break the onEnable() process manually.

    Also, for Line 30, why did you do 'Bukkit.getServer().getPluginManager().getPlugin("RustyCore");' when you can just use 'this'?
     
  5. @RustyDesigns Why not make them modes an enum? Less chance of it breaking.

    EDIT: Updated your code and fixed bad practices
     
    Last edited: Jul 31, 2015
  6. Offline

    RustyDesigns

    You legitamently just made my code worse, you can not make an this statement static, thus the ServerMode command cannot get, or set the server mode. I will push to github with current errors, and then you can help fix.
     
  7. I made a few corrections and fixed bad practices such as blindly casting sender to Player, using .equals for commparing enums etc...
     
Thread Status:
Not open for further replies.

Share This Page