SPIGOT-3744: Missing permission check in broadcastCommandMessage

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot 2018-01-07 09:22:30 +11:00
parent a598aa855b
commit 2eee02bdd6

View File

@ -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) {