Package fr.andross.banitem
Class BanConfig
java.lang.Object
fr.andross.banitem.BanConfig
A cached ban configuration from a FileConfiguration
- Version:
- 3.1
- Author:
- Andross
-
Method Summary
Modifier and TypeMethodDescriptionGet the ban animationorg.bukkit.configuration.file.FileConfiguration
FileConfiguration loaded in this instanceGet the config file used in this instanceGet the current config file name usedGet the ignored inventories titlesGives the plugin prefix used in the config (already colored)Get the ban actions which requires the highest priorityboolean
Save the current config into the file
-
Method Details
-
getConfigName
Get the current config file name used- Returns:
- the current config file name used
-
getConfigFile
Get the config file used in this instance- Returns:
- the config file used in this instance
-
getConfig
@NotNull public org.bukkit.configuration.file.FileConfiguration getConfig()FileConfiguration loaded in this instance- Returns:
- the FileConfiguration loaded
-
saveConfig
public boolean saveConfig()Save the current config into the file- Returns:
- true if successfully saved, otherwise false
-
getPrefix
Gives the plugin prefix used in the config (already colored)- Returns:
- plugin prefix used in the config (already colored)
-
getPriority
Get the ban actions which requires the highest priority- Returns:
- the ban actions which requires the highest priority
-
getAnimation
Get the ban animation- Returns:
- the ban animation
-
getIgnoredInventoryTitles
Get the ignored inventories titles- Returns:
- the ignored inventories titles
-