mirror of
https://github.com/Xiao-MoMi/Custom-Nameplates.git
synced 2025-12-19 15:09:23 +00:00
update to gradle 8.6
This commit is contained in:
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@@ -1,6 +1,6 @@
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
|
||||
networkTimeout=10000
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
|
||||
@@ -279,7 +279,7 @@ public enum Dependency {
|
||||
COMMONS_POOL_2(
|
||||
"org{}apache{}commons",
|
||||
"commons-pool2",
|
||||
"2.11.0",
|
||||
"2.12.0",
|
||||
null,
|
||||
"commons-pool2",
|
||||
Relocation.of("commonspool2", "org{}apache{}commons{}pool2")
|
||||
|
||||
@@ -134,7 +134,7 @@ public class RedisManager extends AbstractStorage {
|
||||
* @param message The message to send.
|
||||
*/
|
||||
public void sendRedisMessage(@NotNull String channel, @NotNull String message) {
|
||||
try (Jedis jedis = jedisPool.getResource()) {
|
||||
try (Jedis jedis = getJedis()) {
|
||||
jedis.publish(channel, message);
|
||||
plugin.debug("Sent Redis message: " + message);
|
||||
}
|
||||
@@ -149,7 +149,7 @@ public class RedisManager extends AbstractStorage {
|
||||
public CompletableFuture<Optional<PlayerData>> getPlayerData(UUID uuid) {
|
||||
var future = new CompletableFuture<Optional<PlayerData>>();
|
||||
plugin.getScheduler().runTaskAsync(() -> {
|
||||
try (Jedis jedis = jedisPool.getResource()) {
|
||||
try (Jedis jedis = getJedis()) {
|
||||
byte[] key = getRedisKey("cn_data", uuid);
|
||||
byte[] data = jedis.get(key);
|
||||
if (data != null) {
|
||||
@@ -171,7 +171,7 @@ public class RedisManager extends AbstractStorage {
|
||||
public CompletableFuture<Boolean> updatePlayerData(UUID uuid, PlayerData playerData) {
|
||||
var future = new CompletableFuture<Boolean>();
|
||||
plugin.getScheduler().runTaskAsync(() -> {
|
||||
try (Jedis jedis = jedisPool.getResource()) {
|
||||
try (Jedis jedis = getJedis()) {
|
||||
jedis.setex(
|
||||
getRedisKey("cn_data", uuid),
|
||||
600,
|
||||
|
||||
Reference in New Issue
Block a user