Arcturus-Community/src/main/java/com/eu/habbo/habbohotel/permissions/PermissionSetting.java

25 lines
375 B
Java
Raw Normal View History

2018-07-06 15:30:00 +02:00
package com.eu.habbo.habbohotel.permissions;
2019-05-26 20:14:53 +02:00
public enum PermissionSetting {
2019-03-18 02:22:00 +01:00
2018-07-06 15:30:00 +02:00
DISALLOWED,
2019-03-18 02:22:00 +01:00
2018-07-06 15:30:00 +02:00
ALLOWED,
2019-03-18 02:22:00 +01:00
2018-07-06 15:30:00 +02:00
ROOM_OWNER;
2019-05-26 20:14:53 +02:00
public static PermissionSetting fromString(String value) {
switch (value) {
2018-07-06 15:30:00 +02:00
case "1":
return ALLOWED;
case "2":
return ROOM_OWNER;
}
return DISALLOWED;
}
}