From 9c1534336c4b70574004d045381844849888155c Mon Sep 17 00:00:00 2001 From: Erik Broes Date: Sun, 15 Jan 2012 11:32:00 +0100 Subject: Fix broadcasting to people without permission. Fixes BUKKIT-464. Thanks grandwazir for the PR. --- src/main/java/org/bukkit/craftbukkit/CraftServer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java') diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java index d1c5fb2e..c4846097 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java @@ -813,7 +813,7 @@ public final class CraftServer implements Server { Set permissibles = getPluginManager().getPermissionSubscriptions(permission); for (Permissible permissible : permissibles) { - if (permissible instanceof CommandSender) { + if (permissible instanceof CommandSender && permissible.hasPermission(permission)) { CommandSender user = (CommandSender) permissible; user.sendMessage(message); count++; -- cgit v1.2.3