mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-13 11:18:23 +01:00
Fix broadcasting to people without permission. Fixes BUKKIT-464. Thanks grandwazir for the PR.
This commit is contained in:
parent
d7cec38c38
commit
9c1534336c
1 changed files with 1 additions and 1 deletions
|
@ -813,7 +813,7 @@ public final class CraftServer implements Server {
|
|||
Set<Permissible> permissibles = getPluginManager().getPermissionSubscriptions(permission);
|
||||
|
||||
for (Permissible permissible : permissibles) {
|
||||
if (permissible instanceof CommandSender) {
|
||||
if (permissible instanceof CommandSender && permissible.hasPermission(permission)) {
|
||||
CommandSender user = (CommandSender) permissible;
|
||||
user.sendMessage(message);
|
||||
count++;
|
||||
|
|
Loading…
Add table
Reference in a new issue