Help w/ death messages

Discussion in 'Plugin Development' started by AeroUK, Feb 10, 2013.

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

    AeroUK

    Hey!

    My problem:
    I need to know how to disable death messages for certain players within an ArrayList.

    As far as I know, it involves using a for loop, but I don't know how to check for player names inside the array and then not broadcast to them

    Any help would be appreciated,
    iEpix
     
  2. iEpix
    Code:java
    1.  
    2. Player p;
    3. for(String s : playerList){
    4. if(s.equalsIgnoreCase(p.getName())){
    5. //dont send message
    6. }
    7. }
    8.  
     
Thread Status:
Not open for further replies.

Share This Page