mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-23 08:46:44 +01:00
SPIGOT-3744: Missing permission check in broadcastCommandMessage
By: md_5 <git@md-5.net>
This commit is contained in:
parent
a598aa855b
commit
2eee02bdd6
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue