WHY DOSE MY CODE DONT WORK

Discussion in 'Spigot Plugin Development' started by danielm175, Jun 13, 2016.

Thread Status:
Not open for further replies.
  1. OMG why dose this not work?


    upload_2016-6-13_16-39-47.png





    I can still do /plugins WHY?
     
  2. 1. You'll get ClassCastException, if console executes this command
    2. You need to use in these cases the PlayerCommandPreprocessEvent..
     
  3. Is this a joke? "dose"? >_>

    Spigot/Bukkit commands are probably registered before plugin commands. You have to catch it with an event, specifically PlayercommandPreprocessEvent as @Haoshoku said.
     
  4. lol I never use this event before :( I don't know the code sorry
     
  5. what would the code be for a example?
     
  6. lmfao.
    learn java.
     
  7. Agreed, learn Java then try to make plugins.
     
    • Agree Agree x 1
  8. I know java
    Just not events
     
  9. you clearly don't, and if you knew java, you'd know a boolean is not an event
     
  10. I do know java mate just not events
     
  11. Why would you ever name a string "message3" also why do you have your stuff so spread out? If you know Java I can point you in the direction of the JavaDocs instead so you can learn much easier
     
  12. considering "author: Nova" is in the plugin.yml it's hard to believe but meh
     
  13. LMFAO, sure
     
  14. the packages are going against Java naming conventions so it may be his, don't be so quick to judge.
     
  15. is it only because you cant? Just asking and please stop being rude in this chat or I will report you I made this so people can help not be rude
     
  16. AHAHHAHAHAHAHA xD
    LOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOL, look at my plugins kid
     
Thread Status:
Not open for further replies.