Broadcast to New Players or Actions

Discussion in 'Archived: Plugin Requests' started by PaulThePirate, Jan 18, 2013.

  1. Offline

    PaulThePirate

    So.. I've been looking for a plugin that broadcasts a message to players of a certain rank. For my server it's Newbie; since they don't have any permissions to do anything I would like a message to be broadcasted (whispered) to that player saying what they need to do to be able to perform that action. Is there a plugin out there like that?
     
  2. Offline

    PaulThePirate

    Nothing on this?
     
  3. Offline

    chasechocolate

    IDK if there is a plugin that can do this, but for any dev who wants to do this, you might try this:
    Code:java
    1. public void sendMessage(String permNode, String msg)}
    2. for(Player player : Bukkit.getServer().getOnlinePlayers()){
    3. if(player.hasPermission(permNode){
    4. player.sendMessage(msg);
    5. }
    6. }
    7. }
     

Share This Page