mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-02 22:47:49 +01:00
switch permission level back to an int internally
This commit is contained in:
parent
6eac7282af
commit
3ce51ff470
@ -150,7 +150,7 @@ public class Player extends LivingEntity implements CommandSender, Localizable,
|
|||||||
|
|
||||||
private BelowNameTag belowNameTag;
|
private BelowNameTag belowNameTag;
|
||||||
|
|
||||||
private byte permissionLevel;
|
private int permissionLevel;
|
||||||
|
|
||||||
private boolean reducedDebugScreenInformation;
|
private boolean reducedDebugScreenInformation;
|
||||||
|
|
||||||
@ -1591,7 +1591,7 @@ public class Player extends LivingEntity implements CommandSender, Localizable,
|
|||||||
public void setPermissionLevel(int permissionLevel) {
|
public void setPermissionLevel(int permissionLevel) {
|
||||||
Check.argCondition(!MathUtils.isBetween(permissionLevel, 0, 4), "permissionLevel has to be between 0 and 4");
|
Check.argCondition(!MathUtils.isBetween(permissionLevel, 0, 4), "permissionLevel has to be between 0 and 4");
|
||||||
|
|
||||||
this.permissionLevel = (byte) permissionLevel;
|
this.permissionLevel = permissionLevel;
|
||||||
|
|
||||||
// Magic values: https://wiki.vg/Entity_statuses#Player
|
// Magic values: https://wiki.vg/Entity_statuses#Player
|
||||||
// TODO remove magic values
|
// TODO remove magic values
|
||||||
|
Loading…
Reference in New Issue
Block a user