9
0
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:
XiaoMoMi
2024-02-26 12:48:21 +08:00
parent 6e77eb55d0
commit 1c433d1891
3 changed files with 5 additions and 5 deletions

View File

@@ -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

View File

@@ -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")

View File

@@ -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,