Class YamlTeamStorage
java.lang.Object
com.booksaw.betterTeams.team.storage.team.TeamStorage
com.booksaw.betterTeams.team.storage.team.YamlTeamStorage
- Direct Known Subclasses:
FlatfileTeamStorage,SeparatedYamlTeamStorage
-
Field Summary
FieldsFields inherited from class com.booksaw.betterTeams.team.storage.team.TeamStorage
team -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedYamlTeamStorage(Team team, YamlStorageManager teamStorage) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddAllyRequest(UUID requesting) voidvoidvoiddemotePlayer(TeamPlayer demotePlayer) booleangetBoolean(String reference) abstract org.bukkit.configuration.ConfigurationSectiondoublevoidgetEchestContents(org.bukkit.inventory.Inventory inventory) intgetWarps()voidpromotePlayer(TeamPlayer promotePlayer) voidremoveAlly(UUID ally) voidremoveAllyRequest(UUID requesting) voidvoidremoveWarp(Warp component) protected abstract voidsaveFile()Used to save whaver needs saving when a change is madevoidvoidsetAllyList(List<String> players) voidsetAllyRequestList(List<String> players) voidsetAnchor(TeamPlayer player, boolean anchor) voidsetAnchoredPlayerList(List<String> players) voidsetBanList(List<String> players) voidsetClaimedChests(List<String> chests) voidsetEchestContents(org.bukkit.inventory.Inventory inventory) voidsetPlayerList(List<String> players) voidsetTitle(TeamPlayer player) protected voidsetValue(String location, TeamStorageType storageType, Object value) Used to set a value after checks have been madevoidMethods inherited from class com.booksaw.betterTeams.team.storage.team.TeamStorage
getBoolean, getDouble, getInt, getString, set, set, set
-
Field Details
-
teamStorage
-
-
Constructor Details
-
YamlTeamStorage
-
-
Method Details
-
setValue
Description copied from class:TeamStorageUsed to set a value after checks have been made- Specified by:
setValuein classTeamStorage- Parameters:
location- the location to store the valuestorageType- The type of value that is being storedvalue- The value to store
-
getString
- Specified by:
getStringin classTeamStorage
-
getBoolean
- Specified by:
getBooleanin classTeamStorage
-
getDouble
- Specified by:
getDoublein classTeamStorage
-
getInt
- Specified by:
getIntin classTeamStorage
-
getPlayerList
- Specified by:
getPlayerListin classTeamStorage
-
setPlayerList
- Specified by:
setPlayerListin classTeamStorage
-
getAnchoredPlayerList
- Specified by:
getAnchoredPlayerListin classTeamStorage
-
setAnchoredPlayerList
- Specified by:
setAnchoredPlayerListin classTeamStorage
-
setAnchor
- Specified by:
setAnchorin classTeamStorage
-
getBanList
- Specified by:
getBanListin classTeamStorage
-
setBanList
- Specified by:
setBanListin classTeamStorage
-
getAllyList
- Specified by:
getAllyListin classTeamStorage
-
setAllyList
- Specified by:
setAllyListin classTeamStorage
-
getEchestContents
public void getEchestContents(org.bukkit.inventory.Inventory inventory) - Specified by:
getEchestContentsin classTeamStorage
-
setEchestContents
public void setEchestContents(org.bukkit.inventory.Inventory inventory) - Specified by:
setEchestContentsin classTeamStorage
-
getAllyRequestList
- Specified by:
getAllyRequestListin classTeamStorage
-
setAllyRequestList
- Specified by:
setAllyRequestListin classTeamStorage
-
getWarps
- Specified by:
getWarpsin classTeamStorage
-
setWarps
- Specified by:
setWarpsin classTeamStorage
-
getClaimedChests
- Specified by:
getClaimedChestsin classTeamStorage
-
setClaimedChests
- Specified by:
setClaimedChestsin classTeamStorage
-
getConfig
public abstract org.bukkit.configuration.ConfigurationSection getConfig() -
saveFile
protected abstract void saveFile()Used to save whaver needs saving when a change is made -
addBan
- Specified by:
addBanin classTeamStorage
-
removeBan
- Specified by:
removeBanin classTeamStorage
-
addAlly
- Specified by:
addAllyin classTeamStorage
-
removeAlly
- Specified by:
removeAllyin classTeamStorage
-
addAllyRequest
- Specified by:
addAllyRequestin classTeamStorage
-
removeAllyRequest
- Specified by:
removeAllyRequestin classTeamStorage
-
addWarp
- Specified by:
addWarpin classTeamStorage
-
removeWarp
- Specified by:
removeWarpin classTeamStorage
-
promotePlayer
- Specified by:
promotePlayerin classTeamStorage
-
demotePlayer
- Specified by:
demotePlayerin classTeamStorage
-
setTitle
- Specified by:
setTitlein classTeamStorage
-
getRawMeta
- Specified by:
getRawMetain classTeamStorage
-
saveMeta
- Specified by:
saveMetain classTeamStorage
-