mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-23 11:15:24 +01:00
Send PVP toggle messages only to on-island players.
https://github.com/BentoBoxWorld/BentoBox/issues/1885
This commit is contained in:
parent
79abf965f3
commit
8a6cc39214
@ -225,8 +225,8 @@ public class PVPListener extends FlagListener {
|
||||
String message = "protection.flags." + flag.getID() + "." + (e.isSetTo() ? "enabled" : "disabled");
|
||||
// Send the message to visitors
|
||||
e.getIsland().getVisitors().forEach(visitor -> User.getInstance(visitor).sendMessage(message));
|
||||
// Send the message to island members (and coops and trusted)
|
||||
e.getIsland().getMemberSet(RanksManager.COOP_RANK).forEach(member -> User.getInstance(member).sendMessage(message));
|
||||
// Send the message to players on the island
|
||||
e.getIsland().getPlayersOnIsland().forEach(player -> User.getInstance(player).sendMessage(message));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user