public static boolean PVP_TITLE_AND_COLOR_SYSTEM_ENABLED;
public static boolean PVP_COLOR_SYSTEM_ENABLED;
public static int PVP_AmounT1;
public static int PK_AmounT1;
public static int TITLE_COLOR_FOR_PVP_AmounT1;
public static int NAME_COLOR_FOR_PK_AmounT1;
public static int PVP_AmounT2;
public static int PK_AmounT2;
public static int TITLE_COLOR_FOR_PVP_AmounT2;
public static int NAME_COLOR_FOR_PK_AmounT2;
public static int PVP_AmounT3;
public static int PK_AmounT3;
public static int TITLE_COLOR_FOR_PVP_AmounT3;
public static int NAME_COLOR_FOR_PK_AmounT3;
public static int PVP_AmounT4;
public static int PK_AmounT4;
public static int TITLE_COLOR_FOR_PVP_AmounT4;
public static int NAME_COLOR_FOR_PK_AmounT4;
public static int PVP_AmounT5;
public static int PK_AmounT5;
public static int TITLE_COLOR_FOR_PVP_AmounT5;
public static int NAME_COLOR_FOR_PK_AmounT5;
public static int PVP_AmounT6;
public static int PK_AmounT6;
public static int TITLE_COLOR_FOR_PVP_AmounT6;
public static int NAME_COLOR_FOR_PK_AmounT6;
public static int PVP_AmounT7;
public static int PK_AmounT7;
public static int TITLE_COLOR_FOR_PVP_AmounT7;
public static int NAME_COLOR_FOR_PK_AmounT7;
public static int PVP_AmounT8;
public static int PK_AmounT8;
public static int TITLE_COLOR_FOR_PVP_AmounT8;
public static int NAME_COLOR_FOR_PK_AmounT8;
public static int PVP_AmounT9;
public static int PK_AmounT9;
public static int TITLE_COLOR_FOR_PVP_AmounT9;
public static int NAME_COLOR_FOR_PK_AmounT9;
public static int PVP_AmounT10;
public static int PK_AmounT10;
public static int TITLE_COLOR_FOR_PVP_AmounT10;
public static int NAME_COLOR_FOR_PK_AmounT10;
public static int PVP_AmounT11;
public static int PK_AmounT11;
PVP_TITLE_AND_COLOR_SYSTEM_ENABLED = Boolean.parseBoolean(L2JModSettings.getProperty("EnablePvPColorSystem", "false"));
PVP_COLOR_SYSTEM_ENABLED = Boolean.parseBoolean(L2JModSettings.getProperty("EnablePkColorSystem", "false"));
PVP_AmounT1 = Integer.parseInt(L2JModSettings.getProperty("PvpAmount1", "50"));
PVP_AmounT1 = Integer.parseInt(L2JModSettings.getProperty("PkAmount1", "50"));
TITLE_COLOR_FOR_PVP_AmounT1 = Integer.decode("0x" + L2JModSettings.getProperty("TitleForAmount1", "00FF00"));
NAME_COLOR_FOR_PK_AmounT1 = Integer.decode("0x" + L2JModSettings.getProperty("ColorForAmount1", "00FF00"));
PVP_AmounT2 = Integer.parseInt(L2JModSettings.getProperty("PvpAmount2", "100"));
PK_AmounT2 = Integer.parseInt(L2JModSettings.getProperty("PkAmount2", "100"));
TITLE_COLOR_FOR_PVP_AmounT2 = Integer.decode("0x" + L2JModSettings.getProperty("TitleForAmount2", "00FF00"));
NAME_COLOR_FOR_PK_AmounT2 = Integer.decode("0x" + L2JModSettings.getProperty("ColorForAmount2", "00FF00"));
PVP_AmounT3 = Integer.parseInt(L2JModSettings.getProperty("PvpAmount3", "150"));
PK_AmounT3 = Integer.parseInt(L2JModSettings.getProperty("PkAmount3", "150"));
TITLE_COLOR_FOR_PVP_AmounT3 = Integer.decode("0x" + L2JModSettings.getProperty("TitleForAmount3", "00FF00"));
NAME_COLOR_FOR_PK_AmounT3 = Integer.decode("0x" + L2JModSettings.getProperty("ColorForAmount3", "00FF00"));
PVP_AmounT4 = Integer.parseInt(L2JModSettings.getProperty("PvpAmount4", "200"));
PK_AmounT4 = Integer.parseInt(L2JModSettings.getProperty("PkAmountt4", "200"));
TITLE_COLOR_FOR_PVP_AmounT4 = Integer.decode("0x" + L2JModSettings.getProperty("TitleForAmount4", "00FF00"));
NAME_COLOR_FOR_PK_AmounT4 = Integer.decode("0x" + L2JModSettings.getProperty("ColorForAmount4", "00FF00"));
PVP_AmounT5 = Integer.parseInt(L2JModSettings.getProperty("PvpAmount5", "250"));
PK_AmounT5 = Integer.parseInt(L2JModSettings.getProperty("PkAmount5", "250"));
TITLE_COLOR_FOR_PVP_AmounT5 = Integer.decode("0x" + L2JModSettings.getProperty("TitleForAmount5", "00FF00"));
NAME_COLOR_FOR_PK_AmounT5 = Integer.decode("0x" + L2JModSettings.getProperty("ColorForAmount5", "00FF00"));
PVP_AmounT6 = Integer.parseInt(L2JModSettings.getProperty("PvpAmount6", "300"));
PK_AmounT6 = Integer.parseInt(L2JModSettings.getProperty("PkAmount6", "300"));
TITLE_COLOR_FOR_PVP_AmounT6 = Integer.decode("0x" + L2JModSettings.getProperty("TitleForAmount6", "00FF00"));
NAME_COLOR_FOR_PK_AmounT6 = Integer.decode("0x" + L2JModSettings.getProperty("ColorForAmount6", "00FF00"));
PVP_AmounT7 = Integer.parseInt(L2JModSettings.getProperty("PvpAmount7", "350"));
PK_AmounT7 = Integer.parseInt(L2JModSettings.getProperty("PkAmount7", "350"));
TITLE_COLOR_FOR_PVP_AmounT7 = Integer.decode("0x" + L2JModSettings.getProperty("TitleForAmount7", "00FF00"));
NAME_COLOR_FOR_PK_AmounT7 = Integer.decode("0x" + L2JModSettings.getProperty("ColorForAmount7", "00FF00"));
PVP_AmounT8 = Integer.parseInt(L2JModSettings.getProperty("PvpAmount8", "400"));
PK_AmounT8 = Integer.parseInt(L2JModSettings.getProperty("PkAmount8", "400"));
TITLE_COLOR_FOR_PVP_AmounT8 = Integer.decode("0x" + L2JModSettings.getProperty("TitleForAmount8", "00FF00"));
NAME_COLOR_FOR_PK_AmounT8 = Integer.decode("0x" + L2JModSettings.getProperty("ColorForAmount8", "00FF00"));
PVP_AmounT9 = Integer.parseInt(L2JModSettings.getProperty("PvpAmount9", "450"));
PK_AmounT9 = Integer.parseInt(L2JModSettings.getProperty("PkAmount9", "450"));
TITLE_COLOR_FOR_PVP_AmounT9 = Integer.decode("0x" + L2JModSettings.getProperty("TitleForAmount9", "00FF00"));
NAME_COLOR_FOR_PK_AmounT9 = Integer.decode("0x" + L2JModSettings.getProperty("ColorForAmount9", "00FF00"));
PVP_AmounT10 = Integer.parseInt(L2JModSettings.getProperty("PvpAmount10", "500"));
PK_AmounT10 = Integer.parseInt(L2JModSettings.getProperty("PkAmount10", "500"));
TITLE_COLOR_FOR_PVP_AmounT10 = Integer.decode("0x" + L2JModSettings.getProperty("TitleForAmount10", "00FF00"));
NAME_COLOR_FOR_PK_AmounT10 = Integer.decode("0x" + L2JModSettings.getProperty("ColorForAmount10", "00FF00"));
public void updatePvPTitleColor(int pvpKillAmount)
{
if (Config.PVP_TITLE_AND_COLOR_SYSTEM_ENABLED)
{
if ((pvpKillAmount >= (Config.PVP_AmounT1)) && (pvpKillAmount < (Config.PVP_AmounT2)))
{
getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AmounT1);
}
if ((pvpKillAmount >= (Config.PVP_AmounT2)) && (pvpKillAmount < (Config.PVP_AmounT3)))
{
getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AmounT2);
}
if ((pvpKillAmount >= (Config.PVP_AmounT3)) && (pvpKillAmount < (Config.PVP_AmounT4)))
{
getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AmounT3);
}
if ((pvpKillAmount >= (Config.PVP_AmounT4)) && (pvpKillAmount < (Config.PVP_AmounT5)))
{
getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AmounT4);
}
if ((pvpKillAmount >= (Config.PVP_AmounT5)) && (pvpKillAmount < (Config.PVP_AmounT6)))
{
getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AmounT5);
}
if ((pvpKillAmount >= (Config.PVP_AmounT6)) && (pvpKillAmount < (Config.PVP_AmounT7)))
{
getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AmounT6);
}
if ((pvpKillAmount >= (Config.PVP_AmounT7)) && (pvpKillAmount < (Config.PVP_AmounT8)))
{
getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AmounT7);
}
if ((pvpKillAmount >= (Config.PVP_AmounT8)) && (pvpKillAmount < (Config.PVP_AmounT9)))
{
getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AmounT8);
}
if ((pvpKillAmount >= (Config.PVP_AmounT9)) && (pvpKillAmount < (Config.PVP_AmounT10)))
{
getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AmounT9);
}
else if (pvpKillAmount >= (Config.PVP_AmounT10))
{
getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AmounT10);
}
}
}
public void updatepvpNameColor(int pvpKillAmount)
{
if (Config.PVP_COLOR_SYSTEM_ENABLED)
{
if ((pvpKillAmount >= (Config.PK_AmounT1)) && (pvpKillAmount < (Config.PK_AmounT1)))
{
getAppearance().setNameColor(Config.NAME_COLOR_FOR_PK_AmounT1);
}
if ((pvpKillAmount >= (Config.PK_AmounT2)) && (pvpKillAmount < (Config.PK_AmounT2)))
{
getAppearance().setNameColor(Config.NAME_COLOR_FOR_PK_AmounT2);
}
if ((pvpKillAmount >= (Config.PK_AmounT3)) && (pvpKillAmount < (Config.PK_AmounT3)))
{
getAppearance().setNameColor(Config.NAME_COLOR_FOR_PK_AmounT3);
}
if ((pvpKillAmount >= (Config.PK_AmounT4)) && (pvpKillAmount < (Config.PK_AmounT4)))
{
getAppearance().setNameColor(Config.NAME_COLOR_FOR_PK_AmounT4);
}
if ((pvpKillAmount >= (Config.PK_AmounT5)) && (pvpKillAmount < (Config.PK_AmounT5)))
{
getAppearance().setNameColor(Config.NAME_COLOR_FOR_PK_AmounT5);
}
if ((pvpKillAmount >= (Config.PK_AmounT6)) && (pvpKillAmount < (Config.PK_AmounT6)))
{
getAppearance().setNameColor(Config.NAME_COLOR_FOR_PK_AmounT6);
}
if ((pvpKillAmount >= (Config.PK_AmounT7)) && (pvpKillAmount < (Config.PK_AmounT7)))
{
getAppearance().setNameColor(Config.NAME_COLOR_FOR_PK_AmounT7);
}
if ((pvpKillAmount >= (Config.PK_AmounT8)) && (pvpKillAmount < (Config.PK_AmounT8)))
{
getAppearance().setNameColor(Config.NAME_COLOR_FOR_PK_AmounT8);
}
if ((pvpKillAmount >= (Config.PK_AmounT9)) && (pvpKillAmount < (Config.PK_AmounT9)))
{
getAppearance().setNameColor(Config.NAME_COLOR_FOR_PK_AmounT9);
}
else if (pvpKillAmount >= (Config.PK_AmounT10))
{
getAppearance().setNameColor(Config.NAME_COLOR_FOR_PK_AmounT10);
}