Fix broadcasting to people without permission. Fixes BUKKIT-464. Thanks grandwazir for the PR.

By: Erik Broes <erikbroes@grum.nl>
This commit is contained in:
CraftBukkit/Spigot 2012-01-15 11:32:00 +01:00
parent 4286d75739
commit 7a06568691

View File

@ -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++;