mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-02 05:31:28 +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
@ -410,7 +410,7 @@ public abstract class Command {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (Permissible user : users) {
|
for (Permissible user : users) {
|
||||||
if (user instanceof CommandSender) {
|
if (user instanceof CommandSender && user.hasPermission(Server.BROADCAST_CHANNEL_ADMINISTRATIVE)) {
|
||||||
CommandSender target = (CommandSender) user;
|
CommandSender target = (CommandSender) user;
|
||||||
|
|
||||||
if (target instanceof ConsoleCommandSender) {
|
if (target instanceof ConsoleCommandSender) {
|
||||||
|
Loading…
Reference in New Issue
Block a user