20 lines
500 B
Java
20 lines
500 B
Java
package cc.novoline.commands.util;
|
|
|
|
import cc.novoline.modules.PlayerRelationType;
|
|
|
|
public class FriendRelationSwitchMap {
|
|
public static final int[] SWITCH_MAP = new int[PlayerRelationType.values().length];
|
|
|
|
static {
|
|
try {
|
|
SWITCH_MAP[PlayerRelationType.TARGET.ordinal()] = 1;
|
|
} catch (NoSuchFieldError noSuchFieldError) {
|
|
}
|
|
|
|
try {
|
|
SWITCH_MAP[PlayerRelationType.FRIEND.ordinal()] = 2;
|
|
} catch (NoSuchFieldError noSuchFieldError2) {
|
|
}
|
|
}
|
|
}
|