Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 20:40:08 +01:00
Fixed issue with console being subscribed multiple times to permissions
Dieser Commit ist enthalten in:
Ursprung
c8d77561b1
Commit
59babb2c31
@ -710,8 +710,7 @@ public class NetServerHandler extends NetHandler implements ICommandListener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
s = String.format(event.getFormat(), event.getPlayer().getDisplayName(), event.getMessage());
|
s = String.format(event.getFormat(), event.getPlayer().getDisplayName(), event.getMessage());
|
||||||
ColouredConsoleSender c = new ColouredConsoleSender(this.minecraftServer.server);
|
minecraftServer.console.sendMessage(s);
|
||||||
c.sendMessage(s);
|
|
||||||
for (Player recipient : event.getRecipients()) {
|
for (Player recipient : event.getRecipients()) {
|
||||||
recipient.sendMessage(s);
|
recipient.sendMessage(s);
|
||||||
}
|
}
|
||||||
|
@ -111,7 +111,6 @@ public class CraftHumanEntity extends CraftLivingEntity implements HumanEntity {
|
|||||||
public void setOp(boolean value) {
|
public void setOp(boolean value) {
|
||||||
this.op = value;
|
this.op = value;
|
||||||
perm.recalculatePermissions();
|
perm.recalculatePermissions();
|
||||||
perm.calculatePermissions();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public Set<PermissionAttachmentInfo> getEffectivePermissions() {
|
public Set<PermissionAttachmentInfo> getEffectivePermissions() {
|
||||||
|
@ -49,7 +49,6 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
|||||||
}
|
}
|
||||||
|
|
||||||
perm.recalculatePermissions();
|
perm.recalculatePermissions();
|
||||||
perm.calculatePermissions();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isPlayer() {
|
public boolean isPlayer() {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren