diff options
author | Erik Broes <erikbroes@grum.nl> | 2012-01-15 11:32:00 +0100 |
---|---|---|
committer | Erik Broes <erikbroes@grum.nl> | 2012-01-15 11:32:00 +0100 |
commit | 9c1534336c4b70574004d045381844849888155c (patch) | |
tree | c4ee6b8046cdc033e700a39b74839d0eec9ab86b /src/main/java | |
parent | d7cec38c385e83c155a47fa970e223361de3d9a9 (diff) | |
download | craftbukkit-9c1534336c4b70574004d045381844849888155c.tar craftbukkit-9c1534336c4b70574004d045381844849888155c.tar.gz craftbukkit-9c1534336c4b70574004d045381844849888155c.tar.lz craftbukkit-9c1534336c4b70574004d045381844849888155c.tar.xz craftbukkit-9c1534336c4b70574004d045381844849888155c.zip |
Fix broadcasting to people without permission. Fixes BUKKIT-464. Thanks grandwazir for the PR.
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/CraftServer.java | 2 |
1 files changed, 1 insertions, 1 deletions
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<Permissible> 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++; |