2018-07-06 15:30:00 +02:00
|
|
|
package com.eu.habbo.habbohotel.modtool;
|
|
|
|
|
2019-05-26 20:14:53 +02:00
|
|
|
public enum CfhActionType {
|
2018-07-06 15:30:00 +02:00
|
|
|
MODS(0),
|
|
|
|
AUTO_REPLY(1),
|
|
|
|
AUTO_IGNORE(2),
|
|
|
|
GUARDIANS(3);
|
|
|
|
|
|
|
|
public final int type;
|
|
|
|
|
2019-05-26 20:14:53 +02:00
|
|
|
CfhActionType(int type) {
|
2018-07-06 15:30:00 +02:00
|
|
|
this.type = type;
|
|
|
|
}
|
|
|
|
|
2019-05-26 20:14:53 +02:00
|
|
|
public static CfhActionType get(String name) {
|
|
|
|
switch (name) {
|
2018-07-06 15:30:00 +02:00
|
|
|
case "auto_reply":
|
|
|
|
return CfhActionType.AUTO_REPLY;
|
|
|
|
|
|
|
|
case "auto_ignore":
|
|
|
|
return CfhActionType.AUTO_IGNORE;
|
|
|
|
|
|
|
|
case "guardians":
|
|
|
|
return CfhActionType.GUARDIANS;
|
|
|
|
}
|
|
|
|
|
|
|
|
return CfhActionType.MODS;
|
|
|
|
}
|
2019-05-26 20:14:53 +02:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public String toString() {
|
|
|
|
return this.name().toLowerCase();
|
|
|
|
}
|
2018-07-06 15:30:00 +02:00
|
|
|
}
|