make permissions read-only after instantiation
This commit is contained in:
parent
379c8ba85d
commit
45b27975bc
1 changed files with 10 additions and 10 deletions
|
@ -1,16 +1,16 @@
|
|||
package dev.elijahr.CollabVM4j;
|
||||
|
||||
public class Permissions {
|
||||
public boolean restore;
|
||||
public boolean reboot;
|
||||
public boolean ban;
|
||||
public boolean kick;
|
||||
public boolean mute;
|
||||
public boolean forcevote;
|
||||
public boolean bypassendturn;
|
||||
public boolean rename;
|
||||
public boolean getip;
|
||||
public boolean xss;
|
||||
public final boolean restore;
|
||||
public final boolean reboot;
|
||||
public final boolean ban;
|
||||
public final boolean kick;
|
||||
public final boolean mute;
|
||||
public final boolean forcevote;
|
||||
public final boolean bypassendturn;
|
||||
public final boolean rename;
|
||||
public final boolean getip;
|
||||
public final boolean xss;
|
||||
|
||||
public Permissions(int mask) {
|
||||
restore = (mask & 1) != 0;
|
||||
|
|
Loading…
Reference in a new issue