mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 04:20:41 +00:00
Settings Cleanup.
This commit is contained in:
parent
414d6b79e9
commit
cdbae1631d
4 changed files with 5 additions and 8 deletions
|
@ -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);
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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()
|
||||||
{
|
{
|
||||||
|
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue