mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-24 19:46:21 +01:00
Fixed player.setOp not deopping players
This commit is contained in:
parent
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) {
|
||||||
|
if (value == isOp()) return;
|
||||||
|
|
||||||
|
if (value) {
|
||||||
server.getHandle().e(getName());
|
server.getHandle().e(getName());
|
||||||
|
} else {
|
||||||
|
server.getHandle().f(getName());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isPlayer() {
|
public boolean isPlayer() {
|
||||||
|
Loading…
Reference in New Issue
Block a user