mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-28 05:25:42 +01:00
Fixed issue with console being subscribed multiple times to permissions
This commit is contained in:
parent
c8d77561b1
commit
59babb2c31
@ -710,8 +710,7 @@ public class NetServerHandler extends NetHandler implements ICommandListener {
|
||||
}
|
||||
|
||||
s = String.format(event.getFormat(), event.getPlayer().getDisplayName(), event.getMessage());
|
||||
ColouredConsoleSender c = new ColouredConsoleSender(this.minecraftServer.server);
|
||||
c.sendMessage(s);
|
||||
minecraftServer.console.sendMessage(s);
|
||||
for (Player recipient : event.getRecipients()) {
|
||||
recipient.sendMessage(s);
|
||||
}
|
||||
|
@ -111,7 +111,6 @@ public class CraftHumanEntity extends CraftLivingEntity implements HumanEntity {
|
||||
public void setOp(boolean value) {
|
||||
this.op = value;
|
||||
perm.recalculatePermissions();
|
||||
perm.calculatePermissions();
|
||||
}
|
||||
|
||||
public Set<PermissionAttachmentInfo> getEffectivePermissions() {
|
||||
|
@ -49,7 +49,6 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
||||
}
|
||||
|
||||
perm.recalculatePermissions();
|
||||
perm.calculatePermissions();
|
||||
}
|
||||
|
||||
public boolean isPlayer() {
|
||||
|
Loading…
Reference in New Issue
Block a user