Settings Cleanup.

This commit is contained in:
KHobbits 2011-11-29 16:16:45 +00:00
parent 414d6b79e9
commit cdbae1631d
4 changed files with 5 additions and 8 deletions

View File

@ -69,6 +69,9 @@ public class I18n
public static String _(final String string, final Object... objects) public static String _(final String string, final Object... objects)
{ {
if (instance == null) {
return "";
}
if (objects.length == 0) if (objects.length == 0)
{ {
return instance.translate(string); return instance.translate(string);

View File

@ -59,8 +59,6 @@ public interface ISettings extends IConf
String getProtectString(final String configName); String getProtectString(final String configName);
boolean getReclaimSetting();
boolean getRespawnAtHome(); boolean getRespawnAtHome();
List getMultipleHomes(); List getMultipleHomes();

View File

@ -243,12 +243,6 @@ public class Settings implements ISettings
return ChatColor.getByCode(Integer.parseInt(colorName, 16)); return ChatColor.getByCode(Integer.parseInt(colorName, 16));
} }
@Override
public boolean getReclaimSetting()
{
return config.getBoolean("reclaim-onlogout", false);
}
@Override @Override
public int getSpawnMobLimit() public int getSpawnMobLimit()
{ {

View File

@ -67,6 +67,8 @@ public class Commandenchant extends EssentialsCommand
super("enchant"); super("enchant");
} }
//TODO: Implement charge costs: final Trade charge = new Trade("enchant-" + enchantmentName, ess);
@Override @Override
protected void run(final Server server, final User user, final String commandLabel, final String[] args) throws Exception protected void run(final Server server, final User user, final String commandLabel, final String[] args) throws Exception
{ {