mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-11 02:02:04 -07:00
SPIGOT-3744: Missing permission check in broadcastCommandMessage
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user