mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-10-24 03:33:06 +02:00
39 lines
696 B
Java
39 lines
696 B
Java
|
package com.eu.habbo.habbohotel.guilds;
|
||
|
|
||
|
public enum SettingsState
|
||
|
{
|
||
|
EVERYONE(0),
|
||
|
MEMBERS(1),
|
||
|
ADMINS(2),
|
||
|
OWNER(3);
|
||
|
|
||
|
public final int state;
|
||
|
|
||
|
SettingsState(int state)
|
||
|
{
|
||
|
this.state = state;
|
||
|
}
|
||
|
|
||
|
public static SettingsState fromValue(int state)
|
||
|
{
|
||
|
try
|
||
|
{
|
||
|
switch (state)
|
||
|
{
|
||
|
case 0:
|
||
|
return EVERYONE;
|
||
|
case 1:
|
||
|
return MEMBERS;
|
||
|
case 2:
|
||
|
return ADMINS;
|
||
|
case 3:
|
||
|
return OWNER;
|
||
|
}
|
||
|
}
|
||
|
catch (Exception e)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
return EVERYONE;
|
||
|
}
|
||
|
}
|