Solved Broadcast Broken ?!?

Discussion in 'Plugin Development' started by Josmal2, Jun 14, 2015.

Thread Status:
Not open for further replies.
  1. I used the code but then i decided to rewrite the plugin when i got to this bit it was complaining about an error "
    Multiple markers at this line
    - The type of the expression must be an array type but it resolved
    to String
    - Shows cannot be resolved to a variable
    "
    Code:
        Bukkit.broadcastMessage("ChatColor.GOLD + "[Shows]" + ChatColor.AQUA + " In 10 Minutes The Block Theatre Shall Present" + ChatColor.GOLD + ChatColor.BOLD + "Finding Nemo The Musical"");
    Any help thanks
     
  2. Offline

    RainoBoy97

    Take a look at your double-quotes :)
     
  3. Offline

    AztroCreationz

    You would have to do:

    Code:
    Bukkit.broadcastMessage(ChatColor.GOLD + "[Shows]" + ChatColor.AQUA +  "In 10 Minutes The Block Theatre Shall Present" + ChatColor.GOLD + ChatColor.BOLD + "Finding Nemo The Musical");
    It seems you got some of your quotation marks messed up, all text shall be in quotation marks while variables, Chatcolor and such shall not have any quotation marks around them! Hope it works! :D
     
Thread Status:
Not open for further replies.

Share This Page