Essentials/Essentials/src/com/earth2me/essentials/ISettings.java

291 lines
5.6 KiB
Java
Raw Normal View History

2011-07-16 02:38:22 +02:00
package com.earth2me.essentials;
import com.earth2me.essentials.commands.IEssentialsCommand;
import com.earth2me.essentials.signs.EssentialsSign;
import com.earth2me.essentials.textreader.IText;
2015-04-15 06:06:16 +02:00
import org.bukkit.ChatColor;
import org.bukkit.configuration.ConfigurationSection;
import org.bukkit.event.EventPriority;
import java.math.BigDecimal;
import java.text.NumberFormat;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import java.util.regex.Pattern;
2011-07-16 02:38:22 +02:00
2015-04-15 06:06:16 +02:00
public interface ISettings extends IConf {
boolean areSignsDisabled();
IText getAnnounceNewPlayerFormat();
boolean getAnnounceNewPlayers();
String getNewPlayerKit();
2015-04-15 06:06:16 +02:00
String getBackupCommand();
2015-04-15 06:06:16 +02:00
long getBackupInterval();
2015-04-15 06:06:16 +02:00
String getChatFormat(String group);
2015-04-15 06:06:16 +02:00
int getChatRadius();
int getNearRadius();
2015-04-15 06:06:16 +02:00
char getChatShout();
2015-04-15 06:06:16 +02:00
char getChatQuestion();
2015-04-15 06:06:16 +02:00
BigDecimal getCommandCost(IEssentialsCommand cmd);
2015-04-15 06:06:16 +02:00
BigDecimal getCommandCost(String label);
2015-04-15 06:06:16 +02:00
String getCurrencySymbol();
2015-04-15 06:06:16 +02:00
int getOversizedStackSize();
2015-04-15 06:06:16 +02:00
int getDefaultStackSize();
2015-04-15 06:06:16 +02:00
double getHealCooldown();
2015-04-15 06:06:16 +02:00
Set<String> getSocialSpyCommands();
boolean getSocialSpyListenMutedPlayers();
Set<String> getMuteCommands();
2015-04-15 06:06:16 +02:00
Map<String, Object> getKit(String name);
2015-04-15 06:06:16 +02:00
ConfigurationSection getKits();
void addKit(String name, List<String> lines, long delay);
boolean isSkippingUsedOneTimeKitsFromKitList();
2015-04-15 06:06:16 +02:00
String getLocale();
2015-04-15 06:06:16 +02:00
String getNewbieSpawn();
2015-04-15 06:06:16 +02:00
String getNicknamePrefix();
2015-04-15 06:06:16 +02:00
ChatColor getOperatorColor() throws Exception;
2015-04-15 06:06:16 +02:00
boolean getPerWarpPermission();
2015-04-15 06:06:16 +02:00
boolean getProtectBoolean(final String configName, boolean def);
2015-04-15 06:06:16 +02:00
int getProtectCreeperMaxHeight();
2015-04-15 06:06:16 +02:00
List<Integer> getProtectList(final String configName);
2015-04-15 06:06:16 +02:00
boolean getProtectPreventSpawn(final String creatureName);
2015-04-15 06:06:16 +02:00
String getProtectString(final String configName);
2015-04-15 06:06:16 +02:00
boolean getRespawnAtHome();
2015-04-15 06:06:16 +02:00
Set getMultipleHomes();
2015-04-15 06:06:16 +02:00
int getHomeLimit(String set);
2015-04-15 06:06:16 +02:00
int getHomeLimit(User user);
2015-04-15 06:06:16 +02:00
int getSpawnMobLimit();
2015-04-15 06:06:16 +02:00
BigDecimal getStartingBalance();
2015-04-15 06:06:16 +02:00
boolean isTeleportSafetyEnabled();
boolean isForceDisableTeleportSafety();
2015-04-15 06:06:16 +02:00
double getTeleportCooldown();
2015-04-15 06:06:16 +02:00
double getTeleportDelay();
2015-04-15 06:06:16 +02:00
boolean hidePermissionlessHelp();
2015-04-15 06:06:16 +02:00
boolean isCommandDisabled(final IEssentialsCommand cmd);
2015-04-15 06:06:16 +02:00
boolean isCommandDisabled(String label);
2015-04-15 06:06:16 +02:00
boolean isCommandOverridden(String name);
2015-04-15 06:06:16 +02:00
boolean isDebug();
2015-04-15 06:06:16 +02:00
boolean isEcoDisabled();
2015-04-15 06:06:16 +02:00
boolean isTradeInStacks(int id);
2015-04-15 06:06:16 +02:00
List<Integer> itemSpawnBlacklist();
2015-04-15 06:06:16 +02:00
List<EssentialsSign> enabledSigns();
2015-04-15 06:06:16 +02:00
boolean permissionBasedItemSpawn();
2015-04-15 06:06:16 +02:00
boolean showNonEssCommandsInHelp();
2015-04-15 06:06:16 +02:00
boolean warnOnBuildDisallow();
2015-04-15 06:06:16 +02:00
boolean warnOnSmite();
2015-04-15 06:06:16 +02:00
BigDecimal getMaxMoney();
2015-04-15 06:06:16 +02:00
BigDecimal getMinMoney();
2015-04-15 06:06:16 +02:00
boolean isEcoLogEnabled();
2015-04-15 06:06:16 +02:00
boolean isEcoLogUpdateEnabled();
2015-04-15 06:06:16 +02:00
boolean removeGodOnDisconnect();
2015-04-15 06:06:16 +02:00
boolean changeDisplayName();
2015-04-15 06:06:16 +02:00
boolean changePlayerListName();
2015-04-15 06:06:16 +02:00
boolean isPlayerCommand(String string);
2015-04-15 06:06:16 +02:00
boolean useBukkitPermissions();
2015-04-15 06:06:16 +02:00
boolean addPrefixSuffix();
2015-04-15 06:06:16 +02:00
boolean disablePrefix();
2015-04-15 06:06:16 +02:00
boolean disableSuffix();
2015-04-15 06:06:16 +02:00
long getAutoAfk();
2015-04-15 06:06:16 +02:00
long getAutoAfkKick();
2015-04-15 06:06:16 +02:00
boolean getFreezeAfkPlayers();
2015-04-15 06:06:16 +02:00
boolean cancelAfkOnMove();
2015-04-15 06:06:16 +02:00
boolean cancelAfkOnInteract();
boolean isAfkListName();
String getAfkListName();
2015-04-15 06:06:16 +02:00
boolean areDeathMessagesEnabled();
2015-04-15 06:06:16 +02:00
void setDebug(boolean debug);
2015-04-15 06:06:16 +02:00
Set<String> getNoGodWorlds();
2015-04-15 06:06:16 +02:00
boolean getUpdateBedAtDaytime();
2015-04-15 06:06:16 +02:00
boolean allowUnsafeEnchantments();
2015-04-15 06:06:16 +02:00
boolean getRepairEnchanted();
2015-04-15 06:06:16 +02:00
boolean isWorldTeleportPermissions();
2015-04-15 06:06:16 +02:00
boolean isWorldHomePermissions();
2015-04-15 06:06:16 +02:00
boolean registerBackInListener();
2015-04-15 06:06:16 +02:00
boolean getDisableItemPickupWhileAfk();
2015-04-15 06:06:16 +02:00
EventPriority getRespawnPriority();
EventPriority getSpawnJoinPriority();
2015-04-15 06:06:16 +02:00
long getTpaAcceptCancellation();
2015-04-15 06:06:16 +02:00
long getTeleportInvulnerability();
2015-04-15 06:06:16 +02:00
boolean isTeleportInvulnerability();
2015-04-15 06:06:16 +02:00
long getLoginAttackDelay();
2015-04-15 06:06:16 +02:00
int getSignUsePerSecond();
2015-04-15 06:06:16 +02:00
double getMaxFlySpeed();
2015-04-15 06:06:16 +02:00
double getMaxWalkSpeed();
2015-04-15 06:06:16 +02:00
int getMailsPerMinute();
2015-04-15 06:06:16 +02:00
long getEconomyLagWarning();
2015-04-15 06:06:16 +02:00
long getPermissionsLagWarning();
2015-04-15 06:06:16 +02:00
void setEssentialsChatActive(boolean b);
2015-04-15 06:06:16 +02:00
long getMaxTempban();
2015-04-15 06:06:16 +02:00
Map<String, Object> getListGroupConfig();
2015-04-15 06:06:16 +02:00
int getMaxNickLength();
boolean ignoreColorsInMaxLength();
2015-04-15 06:06:16 +02:00
int getMaxUserCacheCount();
2015-04-15 06:06:16 +02:00
boolean allowSilentJoinQuit();
2015-04-15 06:06:16 +02:00
boolean isCustomJoinMessage();
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();
boolean isNotifyNoNewMail();
boolean isDropItemsIfFull();
boolean isLastMessageReplyRecipient();
BigDecimal getMinimumPayAmount();
long getLastMessageReplyRecipientTimeout();
boolean isMilkBucketEasterEggEnabled();
boolean isSendFlyEnableOnJoin();
boolean isWorldTimePermissions();
boolean isSpawnOnJoin();
List<String> getSpawnOnJoinGroups();
boolean isUserInSpawnOnJoinGroup(IUser user);
boolean isTeleportToCenterLocation();
boolean isCommandCooldownsEnabled();
long getCommandCooldownMs(String label);
Entry<Pattern, Long> getCommandCooldownEntry(String label);
boolean isCommandCooldownPersistent(String label);
boolean isNpcsInBalanceRanking();
NumberFormat getCurrencyFormat();
List<EssentialsSign> getUnprotectedSignNames();
boolean isPastebinCreateKit();
boolean isAllowBulkBuySell();
boolean isAddingPrefixInPlayerlist();
boolean isAddingSuffixInPlayerlist();
int getNotifyPlayerOfMailCooldown();
int getMotdDelay();
boolean isDirectHatAllowed();
2011-07-16 02:38:22 +02:00
}