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

22 lines
377 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 GuildState {
2018-07-06 15:30:00 +02:00
OPEN(0),
LOCKED(1),
CLOSED(2);
public final int state;
2019-05-26 20:14:53 +02:00
GuildState(int state) {
2018-07-06 15:30:00 +02:00
this.state = state;
}
2019-05-26 20:14:53 +02:00
public static GuildState valueOf(int state) {
try {
2018-07-06 15:30:00 +02:00
return values()[state];
2019-05-26 20:14:53 +02:00
} catch (Exception e) {
2018-07-06 15:30:00 +02:00
return OPEN;
}
}
}