Command always returning false

Discussion in 'Plugin Development' started by ZonalYewHD, Jun 20, 2014.

Thread Status:
Not open for further replies.
  1. ZodiacTheories I'm sorry, but I really need to get this done. Just please tell me how to fix it, or what exactly the error is.

    Anyone?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 9, 2016
  2. ZodiacTheories Are you still willing to help? I'll update GitHub with everything new, but the commands still return false.
     
  3. Offline

    ZodiacTheories

    ZonalYewHD

    Ok, can you do that and post your 'plugin' class?
     
  4. Offline

    xTigerRebornx

    ZonalYewHD You never set the executor for the commands.
     
  5. xTigerRebornx Updating GitHub to what I changed it to, I now get an Abnormal Plugin type error in the console, causing the plugin to be disabled
     
  6. Offline

    xTigerRebornx

    ZonalYewHD You've gotten rid of the default constructor for that class. You shouldn't have a need for a constructor in your class that extends JavaPlugin, simply create the instances of those parameters in your onEnable() method or when you declare the variables (the first way is what I'd recommend).
     
    AoH_Ruthless likes this.
  7. Offline

    xTigerRebornx

    ZonalYewHD Are you setting the executor(s) for those commands? If you are, then put some debug messages and see where it is returning false.
     
  8. xTigerRebornx Go to my GitHub page and you can see all of the code. And no part of the command is being run, even though the executors have been set.
     
  9. Offline

    xTigerRebornx

    ZonalYewHD Can you push the updated code? The current code wouldn't even let the plugin load.
     
  10. Offline

    xTigerRebornx

    ZonalYewHD You never initialize the variables.
     
  11. Offline

    xTigerRebornx

    ZonalYewHD Wherever you believe they should be initialized? Its your code, you designed it, you should be making that decision.
     
Thread Status:
Not open for further replies.

Share This Page