Shout

Discussion in 'Plugin Development' started by mttprvst13, Mar 21, 2015.

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

    mttprvst13

    Hey everyone. I am developing a chat management plugin(has all the features you would ever want) and am having trouble making a shout command. As of now I have it so that if you type "!<message>" it is automatically shout, but in my onCommand method I say player.chat("!" + msg); but nothing happens. I have the command registered and the is no error, but there is also no output. Thank you for taking a look at this.
     
  2. Offline

    mttprvst13

    Here are some pastebins with my code @bwfcwalshy
    Main: Here
    Listener: Here

    EDIT: I added a line: log.info("!" + msg); and even with that, nothing outputs.

    I fixed it. I relized in the test to see if it is right command I did "/shout" instead of "shout" Thanks anyways.
     
    Last edited by a moderator: Mar 21, 2015
  3. Offline

    nverdier

  4. Offline

    mttprvst13

    Yes, it if fixed I had:
    Code:
    if(cmd.getName().equalsIgnoreCase("/shout")){
    
    instead of:
    Code:
    if(cmd.getName().equalsIgnoreCase("shout")){
    
     
Thread Status:
Not open for further replies.

Share This Page