Solved [German/English] Can't register CommandExecutor :(

Discussion in 'Plugin Development' started by horoking, Mar 20, 2013.

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

    horoking

    Call your classes MyPlugin instead of Plugin.
     
  2. No errors? Perhaps you haven't returned true in the onCommand method after the command code has ran? This may make the server think the command was unsuccessful perhaps? This in turn would show the help line for the command which by default would be the usage line in your plugin.yml file.
     
  3. Offline

    CubieX

    You should show us your actual implementation, and not just some example code of your command handler.
     
  4. Offline

    wacossusca34

    Returning false on the onCommand method will print the usage of the corresponding command to the player. It doesn't look like you're returned false anywhere, but that's what would cause that issue.
     
  5. Offline

    horoking

    Thank you very much for the many answers.. my problem not solved but thank you and i will check the code again! :)
     
  6. Offline

    horoking

    I've found the problemcode!

    It was the classname ("Plugin") i have it called "MyPlugin" and now it works!

    Thank you! :D
     
Thread Status:
Not open for further replies.

Share This Page