Package fr.fuzeblocks.homeplugin.cache
Class CacheManager
java.lang.Object
fr.fuzeblocks.homeplugin.cache.CacheManager
The type Cache manager.
- 
Method SummaryModifier and TypeMethodDescriptionvoidAdd home.voidaddRtpRequest(UUID playerId, Long timestamp) Add rtp request.voidaddTpaRequest(UUID sender, UUID target) Add tpa request.voidClear all homes.voidclearHomes(UUID playerId) Clear homes.voidClear spawn.Gets all rtp requests.Gets all tpa senders.Gets homes.static CacheManagerGets instance.getRtpRequest(UUID playerId) Gets rtp request.getSenderForTarget(UUID target) Gets sender for target.org.bukkit.LocationgetSpawn()Gets spawn.getTargetWithSender(UUID sender) Gets target with sender.getTpaTarget(UUID senderId) Gets tpa target.booleanhasIncomingTpa(UUID target) Has incoming tpa boolean.booleanhasRtpRequest(UUID playerId) Has rtp request boolean.booleanhasTpaRequest(UUID sender, UUID target) Has tpa request boolean.booleanIs using redis boolean.voidloadAllHomesToCache(org.bukkit.entity.Player player) Charge toutes les homes du joueur depuis HomeManager et les ajoute au cache.voidremoveHome(UUID playerId, String homeName) Remove home.voidremoveRtpRequest(UUID playerId) Remove rtp request.voidremoveTpaRequest(UUID sender, UUID target) Remove tpa request.voidsetSpawn(org.bukkit.Location location) Sets spawn.
- 
Method Details- 
getInstanceGets instance.- Returns:
- the instance
 
- 
addTpaRequestAdd tpa request.- Parameters:
- sender- the sender
- target- the target
 
- 
hasTpaRequestHas tpa request boolean.- Parameters:
- sender- the sender
- target- the target
- Returns:
- the boolean
 
- 
removeTpaRequestRemove tpa request.- Parameters:
- sender- the sender
- target- the target
 
- 
getTargetWithSenderGets target with sender.- Parameters:
- sender- the sender
- Returns:
- the target with sender
 
- 
hasIncomingTpaHas incoming tpa boolean.- Parameters:
- target- the target
- Returns:
- the boolean
 
- 
getSenderForTargetGets sender for target.- Parameters:
- target- the target
- Returns:
- the sender for target
 
- 
getTpaTargetGets tpa target.- Parameters:
- senderId- the sender id
- Returns:
- the tpa target
 
- 
getAllTpaSendersGets all tpa senders.- Returns:
- the all tpa senders
 
- 
addHomeAdd home.- Parameters:
- playerId- the player id
- homeName- the home name
- location- the location
 
- 
removeHomeRemove home.- Parameters:
- playerId- the player id
- homeName- the home name
 
- 
getHomesGets homes.- Parameters:
- playerId- the player id
- Returns:
- the homes
 
- 
clearHomesClear homes.- Parameters:
- playerId- the player id
 
- 
clearAllHomespublic void clearAllHomes()Clear all homes.
- 
loadAllHomesToCachepublic void loadAllHomesToCache(org.bukkit.entity.Player player) Charge toutes les homes du joueur depuis HomeManager et les ajoute au cache.- Parameters:
- player- Joueur concerné
 
- 
setSpawnpublic void setSpawn(org.bukkit.Location location) Sets spawn.- Parameters:
- location- the location
 
- 
getSpawnpublic org.bukkit.Location getSpawn()Gets spawn.- Returns:
- the spawn
 
- 
clearSpawnpublic void clearSpawn()Clear spawn.
- 
addRtpRequestAdd rtp request.- Parameters:
- playerId- the player id
- timestamp- the timestamp
 
- 
getRtpRequestGets rtp request.- Parameters:
- playerId- the player id
- Returns:
- the rtp request
 
- 
removeRtpRequestRemove rtp request.- Parameters:
- playerId- the player id
 
- 
hasRtpRequestHas rtp request boolean.- Parameters:
- playerId- the player id
- Returns:
- the boolean
 
- 
getAllRtpRequestsGets all rtp requests.- Returns:
- the all rtp requests
 
- 
isUsingRedispublic boolean isUsingRedis()Is using redis boolean.- Returns:
- the boolean
 
 
-