Solved Commands not running/showing in the console

Discussion in 'Plugin Development' started by cheekycharlie101, Jul 4, 2015.

Thread Status:
Not open for further replies.
  1. I am knew to programming in java (but not programming in general) so I thought I'd attempt to make a plugin where you can do /donate <rank> and it shows you the information about that rank. So far I've managed to get the plugin to show some text when no args are given, but when args are given, nothing happens. When /donate is run by the console without args a message shows as I've coded, when run with args nothing happens or shows. When a player runs /donate with or without args nothing is shown in the console to show it has been run.
    Note this plugin was compiled with the tekkit version of craft bukkit, but the code is so basic I doubt that matters too much?

    here is the code: http://pastebin.com/N2AmTQQe

    The code is most likely really messy and inefficient so sorry if it's hard to read.
     
  2. Offline

    Zombie_Striker

    @cheekycharlie101
    Dont use == for strings, use equals() or equalsIgnoreCase() If it does not matter what case it is(so that ...
    /donate DoNaToR
    ...should work)
     
  3. Thanks for the help. I forgot about that line.
     
  4. Done.
     
Thread Status:
Not open for further replies.

Share This Page