Broadcast Message

Discussion in 'Plugin Development' started by ethernity, Sep 25, 2011.

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

    ethernity

    So ever since the new RB 1185 I have some problems with my plugin.
    I usually send messages to all players with:
    Code:
    String msg;
    plugin.getServer().broadcastMessage(ChatColor.YELLOW + msg);
    
    Ever since the new RB sometimes those messages are not being sent, but i get strange messages in the server console:
    Code:
    2011-09-25 13:52:46 [INFO] Player  has started TimeChange vote.
    
    So that usually is the message with some strange code. What happened?
     
  2. Offline

    ethernity

    So no one knows whats happening?
     
  3. Offline

    MuisYa

    Code:
    String msg;
    Shouldnt it be:
    Code:
    String msg = ("Blablablabla");
    Else try this:
    Code:
    Player players = (getServer().getOnlinePlayers());
    players.sendMessage(ChatColor.YELLOW + msg);
    Or something like that, can you fix that? Or should i really got into eclipse...
     
Thread Status:
Not open for further replies.

Share This Page