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.BaseEntryNested 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
ConstructorsConstructorDescriptionGlowBanList(GlowServer server, org.bukkit.BanList.Type type) Creates a new BanList of the given type. -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.BanEntrySet<org.bukkit.BanEntry>org.bukkit.BanEntrygetBanEntry(String target) booleanvoidload()Reloads from the file.voidprotected JsonListFile.BaseEntryDeserialize an entry from JSON format.protected voidsave()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:JsonListFileReloads from the file.- Overrides:
loadin classJsonListFile
-
readEntry
Description copied from class:JsonListFileDeserialize an entry from JSON format.- Specified by:
readEntryin classJsonListFile- Parameters:
object- The JSON object to read from.- Returns:
- The finished Entry.
-
save
protected void save()Description copied from class:JsonListFileSaves to the file.- Overrides:
savein classJsonListFile
-
getBanEntry
- Specified by:
getBanEntryin interfaceorg.bukkit.BanList
-
addBan
- Specified by:
addBanin interfaceorg.bukkit.BanList
-
getBanEntries
- Specified by:
getBanEntriesin interfaceorg.bukkit.BanList
-
isBanned
- Specified by:
isBannedin interfaceorg.bukkit.BanList
-
pardon
- Specified by:
pardonin interfaceorg.bukkit.BanList
-