summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2018-01-07 09:22:30 +1100
committermd_5 <git@md-5.net>2018-01-07 09:25:59 +1100
commit5043fb1d0ed8a125302719ca31cadd2bb1c5fdb2 (patch)
tree963ca5084e969260f0cf99645f07aaae383347ec
parent8707a3a572bcd4168e2548d06b050b10d5dc5582 (diff)
downloadbukkit-5043fb1d0ed8a125302719ca31cadd2bb1c5fdb2.tar
bukkit-5043fb1d0ed8a125302719ca31cadd2bb1c5fdb2.tar.gz
bukkit-5043fb1d0ed8a125302719ca31cadd2bb1c5fdb2.tar.lz
bukkit-5043fb1d0ed8a125302719ca31cadd2bb1c5fdb2.tar.xz
bukkit-5043fb1d0ed8a125302719ca31cadd2bb1c5fdb2.zip
SPIGOT-3744: Missing permission check in broadcastCommandMessage
-rw-r--r--src/main/java/org/bukkit/command/Command.java2
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) {