fr.xephi.authme.settings
Class Settings
java.lang.Object
org.bukkit.configuration.MemorySection
org.bukkit.configuration.MemoryConfiguration
org.bukkit.configuration.file.FileConfiguration
org.bukkit.configuration.file.YamlConfiguration
fr.xephi.authme.settings.Settings
- All Implemented Interfaces:
- org.bukkit.configuration.Configuration, org.bukkit.configuration.ConfigurationSection
public final class Settings
- extends org.bukkit.configuration.file.YamlConfiguration
| Fields inherited from class org.bukkit.configuration.file.FileConfiguration |
SYSTEM_UTF, UTF_BIG, UTF8_OVERRIDE |
|
Method Summary |
boolean |
checkDefaults()
Check loaded defaults against current configuration |
static java.lang.String |
checkLang(java.lang.String lang)
|
void |
clearDefaults()
Clears current configuration defaults |
boolean |
exists()
Simple function for if the Configuration file exists |
static java.lang.Boolean |
getRestrictedIp(java.lang.String name,
java.lang.String ip)
Config option for setting and check restricted user by username;ip ,
return false if ip and name doesnt amtch with player that join the
server, so player has a restricted access |
static boolean |
isEmailCorrect(java.lang.String email)
|
boolean |
load()
Loads the configuration from disk |
void |
loadConfigOptions()
|
void |
loadDefaults(java.lang.String filename)
Loads a file from the plugin jar and sets as default |
void |
mergeConfig()
|
void |
reload()
|
static void |
reloadConfigOptions(org.bukkit.configuration.file.YamlConfiguration newConfig)
|
boolean |
save()
Saves the configuration to disk |
boolean |
saveDefaults()
Saves current configuration (plus defaults) to disk. |
static void |
switchAntiBotMod(boolean mode)
|
| Methods inherited from class org.bukkit.configuration.file.YamlConfiguration |
loadConfiguration, loadConfiguration, loadConfiguration, loadFromString, options, saveToString |
| Methods inherited from class org.bukkit.configuration.file.FileConfiguration |
load, load, load, load, save, save |
| Methods inherited from class org.bukkit.configuration.MemoryConfiguration |
addDefault, addDefaults, addDefaults, getDefaults, getParent, setDefaults |
| Methods inherited from class org.bukkit.configuration.MemorySection |
contains, createPath, createPath, createSection, createSection, get, get, getBoolean, getBoolean, getBooleanList, getByteList, getCharacterList, getColor, getColor, getConfigurationSection, getCurrentPath, getDefaultSection, getDouble, getDouble, getDoubleList, getFloatList, getInt, getInt, getIntegerList, getItemStack, getItemStack, getKeys, getList, getList, getLong, getLong, getLongList, getMapList, getName, getOfflinePlayer, getOfflinePlayer, getRoot, getShortList, getString, getString, getStringList, getValues, getVector, getVector, isBoolean, isColor, isConfigurationSection, isDouble, isInt, isItemStack, isList, isLong, isOfflinePlayer, isSet, isString, isVector, set, toString |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.bukkit.configuration.ConfigurationSection |
contains, createSection, createSection, get, get, getBoolean, getBoolean, getBooleanList, getByteList, getCharacterList, getColor, getColor, getConfigurationSection, getCurrentPath, getDefaultSection, getDouble, getDouble, getDoubleList, getFloatList, getInt, getInt, getIntegerList, getItemStack, getItemStack, getKeys, getList, getList, getLong, getLong, getLongList, getMapList, getName, getOfflinePlayer, getOfflinePlayer, getRoot, getShortList, getString, getString, getStringList, getValues, getVector, getVector, isBoolean, isColor, isConfigurationSection, isDouble, isInt, isItemStack, isList, isLong, isOfflinePlayer, isSet, isString, isVector, set |
PLUGIN_FOLDER
public static final java.lang.String PLUGIN_FOLDER
- See Also:
- Constant Field Values
CACHE_FOLDER
public static final java.lang.String CACHE_FOLDER
- See Also:
- Constant Field Values
AUTH_FILE
public static final java.lang.String AUTH_FILE
- See Also:
- Constant Field Values
MESSAGE_FILE
public static final java.lang.String MESSAGE_FILE
- See Also:
- Constant Field Values
SETTINGS_FILE
public static final java.lang.String SETTINGS_FILE
- See Also:
- Constant Field Values
allowCommands
public static java.util.List<java.lang.String> allowCommands
getJoinPermissions
public static java.util.List<java.lang.String> getJoinPermissions
getUnrestrictedName
public static java.util.List<java.lang.String> getUnrestrictedName
getMySQLOtherUsernameColumn
public static java.util.List<java.lang.String> getMySQLOtherUsernameColumn
getForcedWorlds
public static java.util.List<java.lang.String> getForcedWorlds
countries
public static java.util.List<java.lang.String> countries
countriesBlacklist
public static java.util.List<java.lang.String> countriesBlacklist
forceCommands
public static java.util.List<java.lang.String> forceCommands
forceCommandsAsConsole
public static java.util.List<java.lang.String> forceCommandsAsConsole
getDataSource
public static DataSource.DataSourceType getDataSource
getPasswordHash
public static HashAlgorithm getPasswordHash
useLogging
public static java.lang.Boolean useLogging
purgeDelay
public static int purgeDelay
welcomeMsg
public static java.util.List<java.lang.String> welcomeMsg
unsafePasswords
public static java.util.List<java.lang.String> unsafePasswords
emailBlacklist
public static java.util.List<java.lang.String> emailBlacklist
emailWhitelist
public static java.util.List<java.lang.String> emailWhitelist
isPermissionCheckEnabled
public static java.lang.Boolean isPermissionCheckEnabled
isRegistrationEnabled
public static java.lang.Boolean isRegistrationEnabled
isForcedRegistrationEnabled
public static java.lang.Boolean isForcedRegistrationEnabled
isTeleportToSpawnEnabled
public static java.lang.Boolean isTeleportToSpawnEnabled
isSessionsEnabled
public static java.lang.Boolean isSessionsEnabled
isChatAllowed
public static java.lang.Boolean isChatAllowed
isAllowRestrictedIp
public static java.lang.Boolean isAllowRestrictedIp
isMovementAllowed
public static java.lang.Boolean isMovementAllowed
isKickNonRegisteredEnabled
public static java.lang.Boolean isKickNonRegisteredEnabled
isForceSingleSessionEnabled
public static java.lang.Boolean isForceSingleSessionEnabled
isForceSpawnLocOnJoinEnabled
public static java.lang.Boolean isForceSpawnLocOnJoinEnabled
isSaveQuitLocationEnabled
public static java.lang.Boolean isSaveQuitLocationEnabled
isForceSurvivalModeEnabled
public static java.lang.Boolean isForceSurvivalModeEnabled
isResetInventoryIfCreative
public static java.lang.Boolean isResetInventoryIfCreative
isCachingEnabled
public static java.lang.Boolean isCachingEnabled
isKickOnWrongPasswordEnabled
public static java.lang.Boolean isKickOnWrongPasswordEnabled
getEnablePasswordVerifier
public static java.lang.Boolean getEnablePasswordVerifier
protectInventoryBeforeLogInEnabled
public static java.lang.Boolean protectInventoryBeforeLogInEnabled
isBackupActivated
public static java.lang.Boolean isBackupActivated
isBackupOnStart
public static java.lang.Boolean isBackupOnStart
isBackupOnStop
public static java.lang.Boolean isBackupOnStop
enablePasspartu
public static java.lang.Boolean enablePasspartu
isStopEnabled
public static java.lang.Boolean isStopEnabled
reloadSupport
public static java.lang.Boolean reloadSupport
rakamakUseIp
public static java.lang.Boolean rakamakUseIp
noConsoleSpam
public static java.lang.Boolean noConsoleSpam
removePassword
public static java.lang.Boolean removePassword
displayOtherAccounts
public static java.lang.Boolean displayOtherAccounts
useCaptcha
public static java.lang.Boolean useCaptcha
emailRegistration
public static java.lang.Boolean emailRegistration
multiverse
public static java.lang.Boolean multiverse
notifications
public static java.lang.Boolean notifications
chestshop
public static java.lang.Boolean chestshop
bungee
public static java.lang.Boolean bungee
banUnsafeIp
public static java.lang.Boolean banUnsafeIp
doubleEmailCheck
public static java.lang.Boolean doubleEmailCheck
sessionExpireOnIpChange
public static java.lang.Boolean sessionExpireOnIpChange
disableSocialSpy
public static java.lang.Boolean disableSocialSpy
forceOnlyAfterLogin
public static java.lang.Boolean forceOnlyAfterLogin
useEssentialsMotd
public static java.lang.Boolean useEssentialsMotd
usePurge
public static java.lang.Boolean usePurge
purgePlayerDat
public static java.lang.Boolean purgePlayerDat
purgeEssentialsFile
public static java.lang.Boolean purgeEssentialsFile
supportOldPassword
public static java.lang.Boolean supportOldPassword
purgeLimitedCreative
public static java.lang.Boolean purgeLimitedCreative
purgeAntiXray
public static java.lang.Boolean purgeAntiXray
purgePermissions
public static java.lang.Boolean purgePermissions
enableProtection
public static java.lang.Boolean enableProtection
enableAntiBot
public static java.lang.Boolean enableAntiBot
recallEmail
public static java.lang.Boolean recallEmail
useWelcomeMessage
public static java.lang.Boolean useWelcomeMessage
broadcastWelcomeMessage
public static java.lang.Boolean broadcastWelcomeMessage
forceRegKick
public static java.lang.Boolean forceRegKick
forceRegLogin
public static java.lang.Boolean forceRegLogin
checkVeryGames
public static java.lang.Boolean checkVeryGames
delayJoinMessage
public static java.lang.Boolean delayJoinMessage
noTeleport
public static java.lang.Boolean noTeleport
applyBlindEffect
public static java.lang.Boolean applyBlindEffect
getNickRegex
public static java.lang.String getNickRegex
getUnloggedinGroup
public static java.lang.String getUnloggedinGroup
getMySQLHost
public static java.lang.String getMySQLHost
getMySQLPort
public static java.lang.String getMySQLPort
getMySQLUsername
public static java.lang.String getMySQLUsername
getMySQLPassword
public static java.lang.String getMySQLPassword
getMySQLDatabase
public static java.lang.String getMySQLDatabase
getMySQLTablename
public static java.lang.String getMySQLTablename
getMySQLColumnName
public static java.lang.String getMySQLColumnName
getMySQLColumnPassword
public static java.lang.String getMySQLColumnPassword
getMySQLColumnIp
public static java.lang.String getMySQLColumnIp
getMySQLColumnLastLogin
public static java.lang.String getMySQLColumnLastLogin
getMySQLColumnSalt
public static java.lang.String getMySQLColumnSalt
getMySQLColumnGroup
public static java.lang.String getMySQLColumnGroup
getMySQLColumnEmail
public static java.lang.String getMySQLColumnEmail
unRegisteredGroup
public static java.lang.String unRegisteredGroup
backupWindowsPath
public static java.lang.String backupWindowsPath
getcUnrestrictedName
public static java.lang.String getcUnrestrictedName
getRegisteredGroup
public static java.lang.String getRegisteredGroup
messagesLanguage
public static java.lang.String messagesLanguage
getMySQLlastlocX
public static java.lang.String getMySQLlastlocX
getMySQLlastlocY
public static java.lang.String getMySQLlastlocY
getMySQLlastlocZ
public static java.lang.String getMySQLlastlocZ
rakamakUsers
public static java.lang.String rakamakUsers
rakamakUsersIp
public static java.lang.String rakamakUsersIp
getmailAccount
public static java.lang.String getmailAccount
getmailPassword
public static java.lang.String getmailPassword
getmailSMTP
public static java.lang.String getmailSMTP
getMySQLColumnId
public static java.lang.String getMySQLColumnId
getmailSenderName
public static java.lang.String getmailSenderName
getMailSubject
public static java.lang.String getMailSubject
getMailText
public static java.lang.String getMailText
getMySQLlastlocWorld
public static java.lang.String getMySQLlastlocWorld
defaultWorld
public static java.lang.String defaultWorld
getPhpbbPrefix
public static java.lang.String getPhpbbPrefix
getWordPressPrefix
public static java.lang.String getWordPressPrefix
getMySQLColumnLogged
public static java.lang.String getMySQLColumnLogged
spawnPriority
public static java.lang.String spawnPriority
crazyloginFileName
public static java.lang.String crazyloginFileName
getPassRegex
public static java.lang.String getPassRegex
getWarnMessageInterval
public static int getWarnMessageInterval
getSessionTimeout
public static int getSessionTimeout
getRegistrationTimeout
public static int getRegistrationTimeout
getMaxNickLength
public static int getMaxNickLength
getMinNickLength
public static int getMinNickLength
getPasswordMinLen
public static int getPasswordMinLen
getMovementRadius
public static int getMovementRadius
getmaxRegPerIp
public static int getmaxRegPerIp
getNonActivatedGroup
public static int getNonActivatedGroup
passwordMaxLength
public static int passwordMaxLength
getRecoveryPassLength
public static int getRecoveryPassLength
getMailPort
public static int getMailPort
maxLoginTry
public static int maxLoginTry
captchaLength
public static int captchaLength
saltLength
public static int saltLength
getmaxRegPerEmail
public static int getmaxRegPerEmail
bCryptLog2Rounds
public static int bCryptLog2Rounds
getPhpbbGroup
public static int getPhpbbGroup
antiBotSensibility
public static int antiBotSensibility
antiBotDuration
public static int antiBotDuration
delayRecall
public static int delayRecall
getMaxLoginPerIp
public static int getMaxLoginPerIp
getMaxJoinPerIp
public static int getMaxJoinPerIp
Settings
public Settings(AuthMe plugin)
loadConfigOptions
public void loadConfigOptions()
reloadConfigOptions
public static void reloadConfigOptions(org.bukkit.configuration.file.YamlConfiguration newConfig)
mergeConfig
public void mergeConfig()
getRestrictedIp
public static java.lang.Boolean getRestrictedIp(java.lang.String name,
java.lang.String ip)
- Config option for setting and check restricted user by username;ip ,
return false if ip and name doesnt amtch with player that join the
server, so player has a restricted access
load
public final boolean load()
- Loads the configuration from disk
- Returns:
- True if loaded successfully
reload
public final void reload()
save
public final boolean save()
- Saves the configuration to disk
- Returns:
- True if saved successfully
exists
public final boolean exists()
- Simple function for if the Configuration file exists
- Returns:
- True if configuration exists on disk
loadDefaults
public final void loadDefaults(java.lang.String filename)
- Loads a file from the plugin jar and sets as default
- Parameters:
filename - The filename to open
saveDefaults
public final boolean saveDefaults()
- Saves current configuration (plus defaults) to disk.
If defaults and configuration are empty, saves blank file.
- Returns:
- True if saved successfully
clearDefaults
public final void clearDefaults()
- Clears current configuration defaults
checkDefaults
public boolean checkDefaults()
- Check loaded defaults against current configuration
- Returns:
- false When all defaults aren't present in config
checkLang
public static java.lang.String checkLang(java.lang.String lang)
switchAntiBotMod
public static void switchAntiBotMod(boolean mode)
isEmailCorrect
public static boolean isEmailCorrect(java.lang.String email)