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


    Hello there!
    I'm trying to make a clean /say command but I'm stuck.
    So this is my code:
    1. String message1 = "";
    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:
  2. Offline

    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