Plugin Help Say command

Discussion in 'Plugin Help/Development/Requests' started by DubstepPrins, Nov 23, 2014.

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

    DubstepPrins

    Hello there!
    I'm trying to make a clean /say command but I'm stuck.
    So this is my code:
    Code:java
    1. String message1 = "";
    2.  
    3. if(cmd.getName().equalsIgnoreCase("say")) {
    4. Bukkit.getServer().broadcastMessage(ChatColor.DARK_RED + sender.getName() + ChatColor.GOLD + ": " + ChatColor.GREEN + message1);

    Now I'm wondering how I can make it so I can use my custom text. (Text you would normally write in chat.
    This is what I get atm: http://prntscr.com/59d8hb
    Thanks.
     
  2. Online

    timtower Administrator Administrator Moderator

    DubstepPrins You never set message1 to anything, use a loop to get all arguments.
     
Thread Status:
Not open for further replies.

Share This Page