Changed broadcastNotification() to also check if the player has permission via superperms, in addition to being in the Permissible set.

This commit is contained in:
sk89q 2012-03-18 13:13:13 -07:00
parent c4f6267921
commit f2fead1444

View File

@ -752,7 +752,7 @@ public void broadcastNotification(String msg) {
getServer().broadcast(msg, "worldguard.notify");
Set<Permissible> subs = getServer().getPluginManager().getPermissionSubscriptions("worldguard.notify");
for (Player player : getServer().getOnlinePlayers()) {
if (!subs.contains(player) &&
if (!(subs.contains(player) && player.hasPermission("worldguard.notify")) &&
hasPermission(player, "worldguard.notify")) { // Make sure the player wasn't already broadcasted to.
player.sendMessage(msg);
}