mirror of
https://github.com/TotalFreedomMC/OpenInv.git
synced 2025-08-07 04:53:15 +00:00
Classic mistake, changed my mind and only changed part of the code.
Also the actual mistake. Never forget. (#81)
This commit is contained in:
parent
f07cef5621
commit
e652b43670
3 changed files with 9 additions and 7 deletions
|
@ -9,7 +9,9 @@ public enum Permissions {
|
|||
EXEMPT("exempt"),
|
||||
CROSSWORLD("crossworld"),
|
||||
SILENT("silent"),
|
||||
SILENT_DEFAULT("silent", "default"),
|
||||
ANYCHEST("anychest"),
|
||||
ANY_DEFAULT("any", "default"),
|
||||
ENDERCHEST("openender"),
|
||||
ENDERCHEST_ALL("openenderall"),
|
||||
SEARCH("search"),
|
||||
|
@ -19,10 +21,10 @@ public enum Permissions {
|
|||
|
||||
private final String[] permission;
|
||||
|
||||
Permissions(String... permission) {
|
||||
this.permission = new String[permission.length + 1];
|
||||
Permissions(String... permissions) {
|
||||
this.permission = new String[permissions.length + 1];
|
||||
this.permission[0] = "OpenInv";
|
||||
System.arraycopy(permission, 0, permission, 1, permission.length);
|
||||
System.arraycopy(permissions, 0, this.permission, 1, permissions.length);
|
||||
}
|
||||
|
||||
public boolean hasPermission(Permissible permissible) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue