Separated configs for custom features.
This commit is contained in:
@@ -552,10 +552,10 @@ public class MasterHandler
|
||||
// CastleVCmd.class,
|
||||
// SetVCmd.class,
|
||||
Config.BANKING_SYSTEM_ENABLED ? Banking.class : null,
|
||||
Config.L2JMOD_CHAT_ADMIN ? ChatAdmin.class : null,
|
||||
Config.L2JMOD_MULTILANG_ENABLE && Config.L2JMOD_MULTILANG_VOICED_ALLOW ? Lang.class : null,
|
||||
Config.L2JMOD_DEBUG_VOICE_COMMAND ? Debug.class : null,
|
||||
Config.L2JMOD_ALLOW_CHANGE_PASSWORD ? ChangePassword.class : null,
|
||||
Config.CHAT_ADMIN ? ChatAdmin.class : null,
|
||||
Config.MULTILANG_ENABLE && Config.MULTILANG_VOICED_ALLOW ? Lang.class : null,
|
||||
Config.DEBUG_VOICE_COMMAND ? Debug.class : null,
|
||||
Config.ALLOW_CHANGE_PASSWORD ? ChangePassword.class : null,
|
||||
Config.PREMIUM_SYSTEM_ENABLED ? Premium.class : null,
|
||||
},
|
||||
{
|
||||
|
@@ -134,9 +134,9 @@ public class AdminKill implements IAdminCommandHandler
|
||||
}
|
||||
target.reduceCurrentHp(target.getMaxHp() + target.getMaxCp() + 1, activeChar, null);
|
||||
}
|
||||
else if (Config.L2JMOD_CHAMPION_ENABLE && target.isChampion())
|
||||
else if (Config.CHAMPION_ENABLE && target.isChampion())
|
||||
{
|
||||
target.reduceCurrentHp((target.getMaxHp() * Config.L2JMOD_CHAMPION_HP) + 1, activeChar, null);
|
||||
target.reduceCurrentHp((target.getMaxHp() * Config.CHAMPION_HP) + 1, activeChar, null);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@@ -249,9 +249,9 @@ public class AdminMenu implements IAdminCommandHandler
|
||||
target.reduceCurrentHp(target.getMaxHp() + target.getMaxCp() + 1, activeChar, null);
|
||||
filename = "charmanage.htm";
|
||||
}
|
||||
else if (Config.L2JMOD_CHAMPION_ENABLE && target.isChampion())
|
||||
else if (Config.CHAMPION_ENABLE && target.isChampion())
|
||||
{
|
||||
target.reduceCurrentHp((target.getMaxHp() * Config.L2JMOD_CHAMPION_HP) + 1, activeChar, null);
|
||||
target.reduceCurrentHp((target.getMaxHp() * Config.CHAMPION_HP) + 1, activeChar, null);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@@ -72,7 +72,7 @@ public class Time implements IUserCommandHandler
|
||||
sm.addString(m);
|
||||
}
|
||||
activeChar.sendPacket(sm);
|
||||
if (Config.L2JMOD_DISPLAY_SERVER_TIME)
|
||||
if (Config.DISPLAY_SERVER_TIME)
|
||||
{
|
||||
activeChar.sendMessage("Server time is " + fmt.format(new Date(System.currentTimeMillis())));
|
||||
}
|
||||
|
@@ -33,7 +33,7 @@ public class Lang implements IVoicedCommandHandler
|
||||
@Override
|
||||
public boolean useVoicedCommand(String command, L2PcInstance activeChar, String params)
|
||||
{
|
||||
if (!Config.L2JMOD_MULTILANG_ENABLE || !Config.L2JMOD_MULTILANG_VOICED_ALLOW)
|
||||
if (!Config.MULTILANG_ENABLE || !Config.MULTILANG_VOICED_ALLOW)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -42,7 +42,7 @@ public class Lang implements IVoicedCommandHandler
|
||||
if (params == null)
|
||||
{
|
||||
final StringBuilder html = new StringBuilder(100);
|
||||
for (String lang : Config.L2JMOD_MULTILANG_ALLOWED)
|
||||
for (String lang : Config.MULTILANG_ALLOWED)
|
||||
{
|
||||
html.append("<button value=\"" + lang.toUpperCase() + "\" action=\"bypass -h voice .lang " + lang + "\" width=60 height=21 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"><br>");
|
||||
}
|
||||
|
Reference in New Issue
Block a user