Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-20 21:40:06 +01:00
Fixed player.setOp not deopping players
Dieser Commit ist enthalten in:
Ursprung
7c491b7bc7
Commit
db691ff5c8
@ -40,7 +40,13 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setOp(boolean value) {
|
public void setOp(boolean value) {
|
||||||
server.getHandle().e(getName());
|
if (value == isOp()) return;
|
||||||
|
|
||||||
|
if (value) {
|
||||||
|
server.getHandle().e(getName());
|
||||||
|
} else {
|
||||||
|
server.getHandle().f(getName());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isPlayer() {
|
public boolean isPlayer() {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren