mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-07-02 13:35:33 +02:00
39 lines
715 B
Java
39 lines
715 B
Java
![]() |
package com.eu.habbo.habbohotel.modtool;
|
||
|
|
||
|
public enum CfhActionType
|
||
|
{
|
||
|
MODS(0),
|
||
|
AUTO_REPLY(1),
|
||
|
AUTO_IGNORE(2),
|
||
|
GUARDIANS(3);
|
||
|
|
||
|
public final int type;
|
||
|
|
||
|
CfhActionType(int type)
|
||
|
{
|
||
|
this.type = type;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public String toString()
|
||
|
{
|
||
|
return this.name().toLowerCase();
|
||
|
}
|
||
|
|
||
|
public static CfhActionType get(String name)
|
||
|
{
|
||
|
switch(name)
|
||
|
{
|
||
|
case "auto_reply":
|
||
|
return CfhActionType.AUTO_REPLY;
|
||
|
|
||
|
case "auto_ignore":
|
||
|
return CfhActionType.AUTO_IGNORE;
|
||
|
|
||
|
case "guardians":
|
||
|
return CfhActionType.GUARDIANS;
|
||
|
}
|
||
|
|
||
|
return CfhActionType.MODS;
|
||
|
}
|
||
|
}
|