mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-30 21:17:53 +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 byte permissionLevel;
|
||||
private int permissionLevel;
|
||||
|
||||
private boolean reducedDebugScreenInformation;
|
||||
|
||||
@ -1591,7 +1591,7 @@ public class Player extends LivingEntity implements CommandSender, Localizable,
|
||||
public void setPermissionLevel(int permissionLevel) {
|
||||
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
|
||||
// TODO remove magic values
|
||||
|
Loading…
Reference in New Issue
Block a user