2011-07-16 02:38:22 +02:00
|
|
|
package com.earth2me.essentials;
|
|
|
|
|
2013-07-13 19:40:46 +02:00
|
|
|
import com.earth2me.essentials.commands.IEssentialsCommand;
|
|
|
|
import com.earth2me.essentials.signs.EssentialsSign;
|
|
|
|
import com.earth2me.essentials.textreader.IText;
|
2016-06-20 13:55:31 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
import org.bukkit.ChatColor;
|
|
|
|
import org.bukkit.configuration.ConfigurationSection;
|
|
|
|
import org.bukkit.event.EventPriority;
|
|
|
|
|
2013-07-13 19:40:46 +02:00
|
|
|
import java.math.BigDecimal;
|
2016-06-19 21:03:54 +02:00
|
|
|
import java.text.NumberFormat;
|
2013-07-13 19:40:46 +02:00
|
|
|
import java.util.List;
|
|
|
|
import java.util.Map;
|
2016-06-28 04:40:47 +02:00
|
|
|
import java.util.Map.Entry;
|
2013-07-13 19:40:46 +02:00
|
|
|
import java.util.Set;
|
2016-06-28 04:40:47 +02:00
|
|
|
import java.util.regex.Pattern;
|
2011-07-16 02:38:22 +02:00
|
|
|
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
public interface ISettings extends IConf {
|
|
|
|
boolean areSignsDisabled();
|
|
|
|
|
|
|
|
IText getAnnounceNewPlayerFormat();
|
|
|
|
|
|
|
|
boolean getAnnounceNewPlayers();
|
|
|
|
|
|
|
|
String getNewPlayerKit();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
String getBackupCommand();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
long getBackupInterval();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
String getChatFormat(String group);
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
int getChatRadius();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-05-17 02:36:57 +02:00
|
|
|
int getNearRadius();
|
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
char getChatShout();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
char getChatQuestion();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
BigDecimal getCommandCost(IEssentialsCommand cmd);
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
BigDecimal getCommandCost(String label);
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
String getCurrencySymbol();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
int getOversizedStackSize();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
int getDefaultStackSize();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
double getHealCooldown();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
Set<String> getSocialSpyCommands();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-05-13 04:44:36 +02:00
|
|
|
Set<String> getMuteCommands();
|
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
Map<String, Object> getKit(String name);
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
ConfigurationSection getKits();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-20 17:56:45 +02:00
|
|
|
void addKit(String name, List<String> lines, long delay);
|
|
|
|
|
2015-10-28 04:20:27 +01:00
|
|
|
boolean isSkippingUsedOneTimeKitsFromKitList();
|
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
String getLocale();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
String getNewbieSpawn();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
String getNicknamePrefix();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
ChatColor getOperatorColor() throws Exception;
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
boolean getPerWarpPermission();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
boolean getProtectBoolean(final String configName, boolean def);
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
int getProtectCreeperMaxHeight();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
List<Integer> getProtectList(final String configName);
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
boolean getProtectPreventSpawn(final String creatureName);
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
String getProtectString(final String configName);
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
boolean getRespawnAtHome();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
Set getMultipleHomes();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
int getHomeLimit(String set);
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
int getHomeLimit(User user);
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
int getSpawnMobLimit();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
BigDecimal getStartingBalance();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
boolean isTeleportSafetyEnabled();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-06-01 17:32:37 +02:00
|
|
|
boolean isForceDisableTeleportSafety();
|
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
double getTeleportCooldown();
|
2013-12-13 07:03:15 +01:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
double getTeleportDelay();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
boolean hidePermissionlessHelp();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
boolean isCommandDisabled(final IEssentialsCommand cmd);
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
boolean isCommandDisabled(String label);
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
boolean isCommandOverridden(String name);
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
boolean isDebug();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
boolean isEcoDisabled();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
boolean isTradeInStacks(int id);
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
List<Integer> itemSpawnBlacklist();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
List<EssentialsSign> enabledSigns();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
boolean permissionBasedItemSpawn();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
boolean showNonEssCommandsInHelp();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
boolean warnOnBuildDisallow();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
boolean warnOnSmite();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
BigDecimal getMaxMoney();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
BigDecimal getMinMoney();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
boolean isEcoLogEnabled();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
boolean isEcoLogUpdateEnabled();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
boolean removeGodOnDisconnect();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
boolean changeDisplayName();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
boolean changePlayerListName();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
boolean isPlayerCommand(String string);
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
boolean useBukkitPermissions();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
boolean addPrefixSuffix();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
boolean disablePrefix();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
boolean disableSuffix();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
long getAutoAfk();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
long getAutoAfkKick();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
boolean getFreezeAfkPlayers();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
boolean cancelAfkOnMove();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
boolean cancelAfkOnInteract();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2016-01-20 15:15:53 +01:00
|
|
|
boolean isAfkListName();
|
|
|
|
|
|
|
|
String getAfkListName();
|
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
boolean areDeathMessagesEnabled();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
void setDebug(boolean debug);
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
Set<String> getNoGodWorlds();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
boolean getUpdateBedAtDaytime();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
boolean allowUnsafeEnchantments();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
boolean getRepairEnchanted();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
boolean isWorldTeleportPermissions();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
boolean isWorldHomePermissions();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
boolean registerBackInListener();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
boolean getDisableItemPickupWhileAfk();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
EventPriority getRespawnPriority();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
long getTpaAcceptCancellation();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
long getTeleportInvulnerability();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
boolean isTeleportInvulnerability();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
long getLoginAttackDelay();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
int getSignUsePerSecond();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
double getMaxFlySpeed();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
double getMaxWalkSpeed();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
int getMailsPerMinute();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
long getEconomyLagWarning();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
long getPermissionsLagWarning();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
void setEssentialsChatActive(boolean b);
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
long getMaxTempban();
|
2013-07-13 19:40:46 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
Map<String, Object> getListGroupConfig();
|
2013-07-10 16:48:14 +02:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
int getMaxNickLength();
|
2013-11-15 02:28:47 +01:00
|
|
|
|
2015-10-28 03:37:33 +01:00
|
|
|
boolean ignoreColorsInMaxLength();
|
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
int getMaxUserCacheCount();
|
2013-11-15 02:28:47 +01:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
boolean allowSilentJoinQuit();
|
2013-11-15 02:28:47 +01:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
boolean isCustomJoinMessage();
|
2013-11-15 02:28:47 +01:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
String getCustomJoinMessage();
|
2013-12-02 03:47:39 +01:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
boolean isCustomQuitMessage();
|
2013-12-02 03:47:39 +01:00
|
|
|
|
2015-04-15 06:06:16 +02:00
|
|
|
String getCustomQuitMessage();
|
2015-04-16 16:25:29 +02:00
|
|
|
|
|
|
|
boolean isNotifyNoNewMail();
|
2015-06-28 17:28:55 +02:00
|
|
|
|
|
|
|
boolean isDropItemsIfFull();
|
2016-07-10 18:58:15 +02:00
|
|
|
|
2015-10-27 18:34:59 +01:00
|
|
|
boolean isLastMessageReplyRecipient();
|
2016-07-10 18:58:15 +02:00
|
|
|
|
2015-11-07 18:23:40 +01:00
|
|
|
BigDecimal getMinimumPayAmount();
|
2015-11-24 23:09:59 +01:00
|
|
|
|
|
|
|
long getLastMessageReplyRecipientTimeout();
|
2015-12-02 01:41:56 +01:00
|
|
|
|
|
|
|
boolean isMilkBucketEasterEggEnabled();
|
2016-01-19 03:21:29 +01:00
|
|
|
|
|
|
|
boolean isSendFlyEnableOnJoin();
|
2016-06-20 13:55:31 +02:00
|
|
|
|
2016-01-20 12:46:37 +01:00
|
|
|
boolean isWorldTimePermissions();
|
2016-06-20 13:55:31 +02:00
|
|
|
|
2016-06-19 22:07:45 +02:00
|
|
|
boolean isSpawnOnJoin();
|
2016-07-10 18:58:15 +02:00
|
|
|
|
2016-10-30 14:29:21 +01:00
|
|
|
List<String> getSpawnOnJoinGroups();
|
|
|
|
|
|
|
|
boolean isUserInSpawnOnJoinGroup(IUser user);
|
|
|
|
|
2016-06-26 16:21:35 +02:00
|
|
|
boolean isTeleportToCenterLocation();
|
2016-07-10 18:58:15 +02:00
|
|
|
|
2016-06-28 04:40:47 +02:00
|
|
|
boolean isCommandCooldownsEnabled();
|
|
|
|
|
|
|
|
long getCommandCooldownMs(String label);
|
|
|
|
|
|
|
|
Entry<Pattern, Long> getCommandCooldownEntry(String label);
|
2016-07-10 18:58:15 +02:00
|
|
|
|
2016-06-28 04:40:47 +02:00
|
|
|
boolean isCommandCooldownPersistent(String label);
|
2016-06-20 13:55:31 +02:00
|
|
|
|
2016-07-06 20:34:25 +02:00
|
|
|
boolean isNpcsInBalanceRanking();
|
2016-07-06 22:21:24 +02:00
|
|
|
|
2016-06-19 21:03:54 +02:00
|
|
|
NumberFormat getCurrencyFormat();
|
2016-07-10 18:58:15 +02:00
|
|
|
|
2016-07-01 17:23:54 +02:00
|
|
|
List<EssentialsSign> getUnprotectedSignNames();
|
2016-07-14 00:25:20 +02:00
|
|
|
|
|
|
|
boolean isPastebinCreateKit();
|
2016-07-26 13:25:20 +02:00
|
|
|
|
|
|
|
boolean isAllowBulkBuySell();
|
2016-07-28 18:17:26 +02:00
|
|
|
|
|
|
|
boolean isAddingPrefixInPlayerlist();
|
|
|
|
|
|
|
|
boolean isAddingSuffixInPlayerlist();
|
2011-07-16 02:38:22 +02:00
|
|
|
}
|