mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-07 11:05:13 +01:00
Fixed player.setOp not deopping players
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
378fdb506d
commit
7a0b399f40
1 changed files with 7 additions and 1 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Reference in a new issue