Package net.glowstone.util.bans
Class GlowBanList
java.lang.Object
net.glowstone.util.bans.JsonListFile
net.glowstone.util.bans.GlowBanList
- All Implemented Interfaces:
org.bukkit.BanList
Ban list implementation.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.glowstone.util.bans.JsonListFile
JsonListFile.BaseEntry
Nested classes/interfaces inherited from interface org.bukkit.BanList
org.bukkit.BanList.Type
-
Field Summary
Fields inherited from class net.glowstone.util.bans.JsonListFile
entries
-
Constructor Summary
ConstructorDescriptionGlowBanList
(GlowServer server, org.bukkit.BanList.Type type) Creates a new BanList of the given type. -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.BanEntry
Set<org.bukkit.BanEntry>
org.bukkit.BanEntry
getBanEntry
(String target) boolean
void
load()
Reloads from the file.void
protected JsonListFile.BaseEntry
Deserialize an entry from JSON format.protected void
save()
Saves to the file.
-
Constructor Details
-
GlowBanList
Creates a new BanList of the given type.- Parameters:
server
- The server this BanList belongs to.type
- The type of BanList.
-
-
Method Details
-
load
public void load()Description copied from class:JsonListFile
Reloads from the file.- Overrides:
load
in classJsonListFile
-
readEntry
Description copied from class:JsonListFile
Deserialize an entry from JSON format.- Specified by:
readEntry
in classJsonListFile
- Parameters:
object
- The JSON object to read from.- Returns:
- The finished Entry.
-
save
protected void save()Description copied from class:JsonListFile
Saves to the file.- Overrides:
save
in classJsonListFile
-
getBanEntry
- Specified by:
getBanEntry
in interfaceorg.bukkit.BanList
-
addBan
- Specified by:
addBan
in interfaceorg.bukkit.BanList
-
getBanEntries
- Specified by:
getBanEntries
in interfaceorg.bukkit.BanList
-
isBanned
- Specified by:
isBanned
in interfaceorg.bukkit.BanList
-
pardon
- Specified by:
pardon
in interfaceorg.bukkit.BanList
-