Arcturus-Community/src/main/java/com/eu/habbo/habbohotel/guilds/SettingsState.java

32 lines
652 B
Java
Raw Normal View History

2018-07-06 15:30:00 +02:00
package com.eu.habbo.habbohotel.guilds;
2019-05-26 20:14:53 +02:00
public enum SettingsState {
2018-07-06 15:30:00 +02:00
EVERYONE(0),
MEMBERS(1),
ADMINS(2),
OWNER(3);
public final int state;
2019-05-26 20:14:53 +02:00
SettingsState(int state) {
2018-07-06 15:30:00 +02:00
this.state = state;
}
2019-05-26 20:14:53 +02:00
public static SettingsState fromValue(int state) {
try {
switch (state) {
2018-07-06 15:30:00 +02:00
case 0:
return EVERYONE;
case 1:
return MEMBERS;
case 2:
return ADMINS;
case 3:
return OWNER;
}
2019-05-26 20:14:53 +02:00
} catch (Exception e) {
2018-07-06 15:30:00 +02:00
}
return EVERYONE;
}
}