1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-16 11:37:30 +02:00

Settings Cleanup.

This commit is contained in:
KHobbits
2011-11-29 16:16:45 +00:00
parent a5c8676ab9
commit 7ab1bdd477
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)
{
if (instance == null) {
return "";
}
if (objects.length == 0)
{
return instance.translate(string);

View File

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

View File

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

View File

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