Fixed player.setOp not deopping players

By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
CraftBukkit/Spigot 2011-09-02 21:30:16 +01:00
parent 378fdb506d
commit 7a0b399f40

View file

@ -40,7 +40,13 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
@Override
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() {