2011-07-16 00:38:22 +00:00
|
|
|
package com.earth2me.essentials;
|
|
|
|
|
2013-07-13 17:40:46 +00:00
|
|
|
import com.earth2me.essentials.commands.IEssentialsCommand;
|
|
|
|
import com.earth2me.essentials.signs.EssentialsSign;
|
|
|
|
import com.earth2me.essentials.textreader.IText;
|
2015-04-15 04:06:16 +00:00
|
|
|
import org.bukkit.ChatColor;
|
|
|
|
import org.bukkit.configuration.ConfigurationSection;
|
|
|
|
import org.bukkit.event.EventPriority;
|
|
|
|
|
2013-07-13 17:40:46 +00:00
|
|
|
import java.math.BigDecimal;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.Map;
|
|
|
|
import java.util.Set;
|
2011-07-16 00:38:22 +00:00
|
|
|
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
public interface ISettings extends IConf {
|
|
|
|
boolean areSignsDisabled();
|
|
|
|
|
|
|
|
IText getAnnounceNewPlayerFormat();
|
|
|
|
|
|
|
|
boolean getAnnounceNewPlayers();
|
|
|
|
|
|
|
|
String getNewPlayerKit();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
String getBackupCommand();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
long getBackupInterval();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
String getChatFormat(String group);
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
int getChatRadius();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
char getChatShout();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
char getChatQuestion();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
BigDecimal getCommandCost(IEssentialsCommand cmd);
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
BigDecimal getCommandCost(String label);
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
String getCurrencySymbol();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
int getOversizedStackSize();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
int getDefaultStackSize();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
double getHealCooldown();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
Set<String> getSocialSpyCommands();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
Map<String, Object> getKit(String name);
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
ConfigurationSection getKits();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
String getLocale();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
String getNewbieSpawn();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
String getNicknamePrefix();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
ChatColor getOperatorColor() throws Exception;
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
boolean getPerWarpPermission();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
boolean getProtectBoolean(final String configName, boolean def);
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
int getProtectCreeperMaxHeight();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
List<Integer> getProtectList(final String configName);
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
boolean getProtectPreventSpawn(final String creatureName);
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
String getProtectString(final String configName);
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
boolean getRespawnAtHome();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
Set getMultipleHomes();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
int getHomeLimit(String set);
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
int getHomeLimit(User user);
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
int getSpawnMobLimit();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
BigDecimal getStartingBalance();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
boolean isTeleportSafetyEnabled();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
double getTeleportCooldown();
|
2013-12-13 06:03:15 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
double getTeleportDelay();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
boolean hidePermissionlessHelp();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
boolean isCommandDisabled(final IEssentialsCommand cmd);
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
boolean isCommandDisabled(String label);
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
boolean isCommandOverridden(String name);
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
boolean isDebug();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
boolean isEcoDisabled();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
boolean isTradeInStacks(int id);
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
List<Integer> itemSpawnBlacklist();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
List<EssentialsSign> enabledSigns();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
boolean permissionBasedItemSpawn();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
boolean showNonEssCommandsInHelp();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
boolean warnOnBuildDisallow();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
boolean warnOnSmite();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
BigDecimal getMaxMoney();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
BigDecimal getMinMoney();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
boolean isEcoLogEnabled();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
boolean isEcoLogUpdateEnabled();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
boolean removeGodOnDisconnect();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
boolean changeDisplayName();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
boolean changePlayerListName();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
boolean isPlayerCommand(String string);
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
boolean useBukkitPermissions();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
boolean addPrefixSuffix();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
boolean disablePrefix();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
boolean disableSuffix();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
long getAutoAfk();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
long getAutoAfkKick();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
boolean getFreezeAfkPlayers();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
boolean cancelAfkOnMove();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
boolean cancelAfkOnInteract();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
boolean areDeathMessagesEnabled();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
void setDebug(boolean debug);
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
Set<String> getNoGodWorlds();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
boolean getUpdateBedAtDaytime();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
boolean allowUnsafeEnchantments();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
boolean getRepairEnchanted();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
boolean isWorldTeleportPermissions();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
boolean isWorldHomePermissions();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
boolean registerBackInListener();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
boolean getDisableItemPickupWhileAfk();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
EventPriority getRespawnPriority();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
long getTpaAcceptCancellation();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
boolean isMetricsEnabled();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
void setMetricsEnabled(boolean metricsEnabled);
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
long getTeleportInvulnerability();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
boolean isTeleportInvulnerability();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
long getLoginAttackDelay();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
int getSignUsePerSecond();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
double getMaxFlySpeed();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
double getMaxWalkSpeed();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
int getMailsPerMinute();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
long getEconomyLagWarning();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
long getPermissionsLagWarning();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
void setEssentialsChatActive(boolean b);
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
long getMaxTempban();
|
2013-07-13 17:40:46 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
Map<String, Object> getListGroupConfig();
|
2013-07-10 14:48:14 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
int getMaxNickLength();
|
2013-11-15 01:28:47 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
int getMaxUserCacheCount();
|
2013-11-15 01:28:47 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
boolean allowSilentJoinQuit();
|
2013-11-15 01:28:47 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
boolean isCustomJoinMessage();
|
2013-11-15 01:28:47 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
String getCustomJoinMessage();
|
2013-12-02 02:47:39 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
boolean isCustomQuitMessage();
|
2013-12-02 02:47:39 +00:00
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
String getCustomQuitMessage();
|
2011-07-16 00:38:22 +00:00
|
|
|
}
|