Class WarpSQLManager
java.lang.Object
fr.fuzeblocks.homeplugin.core.warps.sql.WarpSQLManager
- All Implemented Interfaces:
Warp
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd warp boolean.booleanParse and add a warp from serialized data (e.g.booleanaddWarp(String name, String creatorName, UUID creatorUUID, org.bukkit.Material icon, List<String> lores, boolean isPublic, Set<UUID> deniedPlayers, double cost, String permission, Timestamp expirationDate, Timestamp creationDate, org.bukkit.Location location) Add warp boolean.booleandeleteWarp(WarpData warpData) Delete warp boolean.booleandeleteWarp(String name) Delete warp boolean.Get a map of all warps by name.Get full warp data object by name, or null if not found.Convenience: list only the names of all warps.booleanbooleanbooleanrelocateWarp(WarpData warpData, org.bukkit.Location newLocation) Relocate warp boolean.booleanrelocateWarp(String name, org.bukkit.Location newLocation) Relocate warp boolean.booleanrenameWarp(WarpData warpData, String newName) Rename warp boolean.booleanrenameWarp(String oldName, String newName) Rename warp boolean.booleansetDeniedPlayers(WarpData warpData, Set<UUID> deniedPlayers) booleansetDeniedPlayers(String name, Set<UUID> deniedPlayers) booleansetWarpCost(WarpData warpData, double cost) Sets warp cost.booleansetWarpCost(String name, double cost) Sets warp cost.booleansetWarpExpirationDate(WarpData warpData, Timestamp expirationDate) Sets warp expiration date.booleansetWarpExpirationDate(String name, Timestamp expirationDate) Sets warp expiration date.booleansetWarpIcon(WarpData warpData, org.bukkit.Material newIcon) Sets warp icon.booleansetWarpIcon(String name, org.bukkit.Material newIcon) Sets warp icon.booleansetWarpLores(WarpData warpData, List<String> newLores) Sets warp lores.booleansetWarpLores(String serializedData, List<String> newLores) Sets warp lores.booleansetWarpPermission(WarpData warpData, String permission) Sets warp permission.booleansetWarpPermission(String name, String permission) Sets warp permission.booleansetWarpPublic(WarpData warpData, boolean isPublic) Sets warp public.booleansetWarpPublic(String name, boolean isPublic) Sets warp public.booleanwarpExists(WarpData warpData) Warp exists boolean.booleanwarpExists(String name) Warp exists boolean.
-
Constructor Details
-
WarpSQLManager
public WarpSQLManager()
-
-
Method Details
-
addWarp
public boolean addWarp(String name, String creatorName, UUID creatorUUID, org.bukkit.Material icon, List<String> lores, boolean isPublic, Set<UUID> deniedPlayers, double cost, String permission, Timestamp expirationDate, Timestamp creationDate, org.bukkit.Location location) Description copied from interface:WarpAdd warp boolean.- Specified by:
addWarpin interfaceWarp- Parameters:
name- the namecreatorName- the creator namecreatorUUID- the creator uuidicon- the iconlores- the loresisPublic- the is publicdeniedPlayers- the allowed playerscost- the costpermission- the permissionexpirationDate- the expiration datecreationDate- the creation datelocation- the location- Returns:
- the boolean
-
addWarp
Description copied from interface:WarpParse and add a warp from serialized data (e.g. from a file/DB). The exact format is implementation-dependent. -
addWarp
-
deleteWarp
Description copied from interface:WarpDelete warp boolean.- Specified by:
deleteWarpin interfaceWarp- Parameters:
name- the name- Returns:
- the boolean
-
deleteWarp
Description copied from interface:WarpDelete warp boolean.- Specified by:
deleteWarpin interfaceWarp- Parameters:
warpData- the warp data- Returns:
- the boolean
-
renameWarp
Description copied from interface:WarpRename warp boolean.- Specified by:
renameWarpin interfaceWarp- Parameters:
oldName- the old namenewName- the new name- Returns:
- the boolean
-
renameWarp
Description copied from interface:WarpRename warp boolean.- Specified by:
renameWarpin interfaceWarp- Parameters:
warpData- the warp datanewName- the new name- Returns:
- the boolean
-
relocateWarp
Description copied from interface:WarpRelocate warp boolean.- Specified by:
relocateWarpin interfaceWarp- Parameters:
name- the namenewLocation- the new location- Returns:
- the boolean
-
relocateWarp
Description copied from interface:WarpRelocate warp boolean.- Specified by:
relocateWarpin interfaceWarp- Parameters:
warpData- the warp datanewLocation- the new location- Returns:
- the boolean
-
setWarpIcon
Description copied from interface:WarpSets warp icon.- Specified by:
setWarpIconin interfaceWarp- Parameters:
name- the namenewIcon- the new icon- Returns:
- the warp icon
-
setWarpIcon
Description copied from interface:WarpSets warp icon.- Specified by:
setWarpIconin interfaceWarp- Parameters:
warpData- the warp datanewIcon- the new icon- Returns:
- the warp icon
-
setWarpLores
-
setWarpLores
-
setWarpPublic
Description copied from interface:WarpSets warp public.- Specified by:
setWarpPublicin interfaceWarp- Parameters:
name- the nameisPublic- the is public- Returns:
- the warp public
-
setWarpPublic
Description copied from interface:WarpSets warp public.- Specified by:
setWarpPublicin interfaceWarp- Parameters:
warpData- the warp dataisPublic- the is public- Returns:
- the warp public
-
setDeniedPlayers
- Specified by:
setDeniedPlayersin interfaceWarp
-
setDeniedPlayers
- Specified by:
setDeniedPlayersin interfaceWarp
-
setWarpCost
Description copied from interface:WarpSets warp cost.- Specified by:
setWarpCostin interfaceWarp- Parameters:
name- the namecost- the cost- Returns:
- the warp cost
-
setWarpCost
Description copied from interface:WarpSets warp cost.- Specified by:
setWarpCostin interfaceWarp- Parameters:
warpData- the warp datacost- the cost- Returns:
- the warp cost
-
setWarpPermission
Description copied from interface:WarpSets warp permission.- Specified by:
setWarpPermissionin interfaceWarp- Parameters:
name- the namepermission- the permission- Returns:
- the warp permission
-
setWarpPermission
Description copied from interface:WarpSets warp permission.- Specified by:
setWarpPermissionin interfaceWarp- Parameters:
warpData- the warp datapermission- the permission- Returns:
- the warp permission
-
setWarpExpirationDate
Description copied from interface:WarpSets warp expiration date.- Specified by:
setWarpExpirationDatein interfaceWarp- Parameters:
name- the nameexpirationDate- the expiration date- Returns:
- the warp expiration date
-
setWarpExpirationDate
Description copied from interface:WarpSets warp expiration date.- Specified by:
setWarpExpirationDatein interfaceWarp- Parameters:
warpData- the warp dataexpirationDate- the expiration date- Returns:
- the warp expiration date
-
warpExists
Description copied from interface:WarpWarp exists boolean.- Specified by:
warpExistsin interfaceWarp- Parameters:
name- the name- Returns:
- the boolean
-
warpExists
Description copied from interface:WarpWarp exists boolean.- Specified by:
warpExistsin interfaceWarp- Parameters:
warpData- the warp data- Returns:
- the boolean
-
getWarp
-
getAllWarps
-
getWarpNames
Description copied from interface:WarpConvenience: list only the names of all warps.- Specified by:
getWarpNamesin interfaceWarp- Returns:
- the warp names
-
isExpired
-
isExpired
-