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 TypeMethodDescription@NotNull BanAnimation
Get the ban animation.@NotNull org.bukkit.configuration.file.FileConfiguration
FileConfiguration loaded in this instance.@NotNull File
Get the config file used in this instance.@NotNull String
Get the current config file name used.Get the ignored inventories titles.@NotNull String
Gives the plugin prefix used in the config (already colored).Get the ban actions which requires the highest priority.boolean
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 @NotNull 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
-