diff options
author | md_5 <git@md-5.net> | 2018-01-07 09:22:30 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2018-01-07 09:25:59 +1100 |
commit | 5043fb1d0ed8a125302719ca31cadd2bb1c5fdb2 (patch) | |
tree | 963ca5084e969260f0cf99645f07aaae383347ec /src | |
parent | 8707a3a572bcd4168e2548d06b050b10d5dc5582 (diff) | |
download | bukkit-5043fb1d0ed8a125302719ca31cadd2bb1c5fdb2.tar bukkit-5043fb1d0ed8a125302719ca31cadd2bb1c5fdb2.tar.gz bukkit-5043fb1d0ed8a125302719ca31cadd2bb1c5fdb2.tar.lz bukkit-5043fb1d0ed8a125302719ca31cadd2bb1c5fdb2.tar.xz bukkit-5043fb1d0ed8a125302719ca31cadd2bb1c5fdb2.zip |
SPIGOT-3744: Missing permission check in broadcastCommandMessage
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/command/Command.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/command/Command.java b/src/main/java/org/bukkit/command/Command.java index 7adc6ee9..fa985fe9 100644 --- a/src/main/java/org/bukkit/command/Command.java +++ b/src/main/java/org/bukkit/command/Command.java @@ -410,7 +410,7 @@ public abstract class Command { } for (Permissible user : users) { - if (user instanceof CommandSender) { + if (user instanceof CommandSender && user.hasPermission(Server.BROADCAST_CHANNEL_ADMINISTRATIVE)) { CommandSender target = (CommandSender) user; if (target instanceof ConsoleCommandSender) { |