Class SettingsManager
java.lang.Object
net.sacredlabyrinth.phaed.simpleclans.managers.SettingsManager
- Author:
- phaed
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a player to the banned listorg.bukkit.configuration.file.FileConfigurationdoubleintList<org.bukkit.Material> intdouble@NotNull RankingNumberResolver.RankingTypeint@NotNull Collection<Rank> booleanhasDisallowedColor(String str) Check whether a string has a disallowed colorbooleanis(SettingsManager.ConfigField field) booleanbooleanCheck whether a player is bannedbooleanisDisallowedWord(String word) Check whether a word is disallowedbooleanisUnrivable(String tag) Check whether a clan is unrivablevoidLoad the configurationvoidremoveBanned(UUID playerUniqueId) Remove a player from the banned listvoidsave()<T> voidset(SettingsManager.ConfigField field, T value)
-
Constructor Details
-
SettingsManager
-
-
Method Details
-
set
-
getInt
-
getDouble
-
getStringList
-
getString
-
getColored
-
getMinutes
-
getSeconds
-
getPercent
-
is
-
loadAndSave
public void loadAndSave()Load the configuration -
save
public void save() -
getLanguage
-
getItemList
-
isDisallowedWord
Check whether a word is disallowed- Parameters:
word- the world- Returns:
- whether its disallowed word
-
hasDisallowedColor
Check whether a string has a disallowed color- Parameters:
str- the string- Returns:
- whether the string contains the color code
-
getDisallowedColorString
- Returns:
- a comma delimited string with all disallowed colors
-
isUnrivable
Check whether a clan is unrivable- Parameters:
tag- the tag- Returns:
- whether the clan is unrivable
-
addBanned
Add a player to the banned list- Parameters:
playerUniqueId- the player's name
-
isBanned
Check whether a player is banned- Parameters:
playerUniqueId- the player's name- Returns:
- whether player is banned
-
removeBanned
Remove a player from the banned list- Parameters:
playerUniqueId- the player's name
-
isActionAllowedInWar
-
getIgnoredList
-
getRankingType
-
getStarterRanks
-
getConfig
public org.bukkit.configuration.file.FileConfiguration getConfig()
-