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;
|
package dev.elijahr.CollabVM4j;
|
||||||
|
|
||||||
public class Permissions {
|
public class Permissions {
|
||||||
public boolean restore;
|
public final boolean restore;
|
||||||
public boolean reboot;
|
public final boolean reboot;
|
||||||
public boolean ban;
|
public final boolean ban;
|
||||||
public boolean kick;
|
public final boolean kick;
|
||||||
public boolean mute;
|
public final boolean mute;
|
||||||
public boolean forcevote;
|
public final boolean forcevote;
|
||||||
public boolean bypassendturn;
|
public final boolean bypassendturn;
|
||||||
public boolean rename;
|
public final boolean rename;
|
||||||
public boolean getip;
|
public final boolean getip;
|
||||||
public boolean xss;
|
public final boolean xss;
|
||||||
|
|
||||||
public Permissions(int mask) {
|
public Permissions(int mask) {
|
||||||
restore = (mask & 1) != 0;
|
restore = (mask & 1) != 0;
|
||||||
|
|
Loading…
Reference in a new issue