Package fr.fuzeblocks.homeplugin.home
Class RedisHomeStore
java.lang.Object
fr.fuzeblocks.homeplugin.home.RedisHomeStore
- All Implemented Interfaces:
HomeRequestStore
Redis implementation of HomeRequestStore for storing player homes.
-
Constructor Summary
ConstructorsConstructorDescriptionRedisHomeStore(redis.clients.jedis.JedisPooled jedis) Instantiates a new Redis home store. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd home.voidClear all homes.voidclearHomes(UUID playerId) Clear homes.Gets homes.voidrelocateHome(UUID playerId, String homeName, org.bukkit.Location newLocation) Relocate home.voidremoveHome(UUID playerId, String homeName) Remove home.
-
Constructor Details
-
RedisHomeStore
public RedisHomeStore(redis.clients.jedis.JedisPooled jedis) Instantiates a new Redis home store.- Parameters:
jedis- The Jedis pooled connection
-
-
Method Details
-
addHome
Description copied from interface:HomeRequestStoreAdd home.- Specified by:
addHomein interfaceHomeRequestStore- Parameters:
playerId- the player idhomeName- the home namelocation- the location
-
removeHome
Description copied from interface:HomeRequestStoreRemove home.- Specified by:
removeHomein interfaceHomeRequestStore- Parameters:
playerId- the player idhomeName- the home name
-
relocateHome
Description copied from interface:HomeRequestStoreRelocate home.- Specified by:
relocateHomein interfaceHomeRequestStore- Parameters:
playerId- the player idhomeName- the home namenewLocation- the new location
-
getHomes
Description copied from interface:HomeRequestStoreGets homes.- Specified by:
getHomesin interfaceHomeRequestStore- Parameters:
playerId- the player id- Returns:
- the homes
-
clearHomes
Description copied from interface:HomeRequestStoreClear homes.- Specified by:
clearHomesin interfaceHomeRequestStore- Parameters:
playerId- the player id
-
clearAllHomes
public void clearAllHomes()Description copied from interface:HomeRequestStoreClear all homes.- Specified by:
clearAllHomesin interfaceHomeRequestStore
-