From e8084db43b65a1fa316e1653167419585659ace6 Mon Sep 17 00:00:00 2001 From: William Date: Sun, 29 Sep 2024 15:28:30 +0100 Subject: [PATCH] build: bump ClopLib to 1.0.10 Restricts starting a raid to trusted users and fixes hanging signs not being protected behind place block operations --- common/build.gradle | 2 +- .../william278/huskclaims/config/TrustLevels.java | 15 ++++++++++----- gradle.properties | 2 +- paper/build.gradle | 2 +- 4 files changed, 13 insertions(+), 8 deletions(-) diff --git a/common/build.gradle b/common/build.gradle index 624b32c4..1212bf0a 100644 --- a/common/build.gradle +++ b/common/build.gradle @@ -11,7 +11,7 @@ dependencies { api 'com.fatboyindustrial.gson-javatime-serialisers:gson-javatime-serialisers:1.1.2' api 'net.william278:minedown:1.8.2' api 'net.william278:paginedown:1.1.2' - api 'net.william278.cloplib:cloplib-common:1.0.8' + api 'net.william278.cloplib:cloplib-common:1.0.10' api 'net.william278:DesertWell:2.0.4' api('com.zaxxer:HikariCP:5.1.0') { exclude module: 'slf4j-api' diff --git a/common/src/main/java/net/william278/huskclaims/config/TrustLevels.java b/common/src/main/java/net/william278/huskclaims/config/TrustLevels.java index 28e131ad..25c17d48 100644 --- a/common/src/main/java/net/william278/huskclaims/config/TrustLevels.java +++ b/common/src/main/java/net/william278/huskclaims/config/TrustLevels.java @@ -76,7 +76,8 @@ public class TrustLevels { OperationType.FILL_BUCKET, OperationType.EMPTY_BUCKET, OperationType.USE_SPAWN_EGG, - OperationType.ENDER_PEARL_TELEPORT + OperationType.ENDER_PEARL_TELEPORT, + OperationType.START_RAID )) .privileges(List.of( TrustLevel.Privilege.MANAGE_TRUSTEES, @@ -114,7 +115,8 @@ public class TrustLevels { OperationType.FILL_BUCKET, OperationType.EMPTY_BUCKET, OperationType.USE_SPAWN_EGG, - OperationType.ENDER_PEARL_TELEPORT + OperationType.ENDER_PEARL_TELEPORT, + OperationType.START_RAID )) .build(), @@ -131,7 +133,8 @@ public class TrustLevels { OperationType.ENTITY_INTERACT, OperationType.CONTAINER_OPEN, OperationType.REDSTONE_INTERACT, - OperationType.ENDER_PEARL_TELEPORT + OperationType.ENDER_PEARL_TELEPORT, + OperationType.START_RAID )) .build(), @@ -147,7 +150,8 @@ public class TrustLevels { OperationType.BLOCK_INTERACT, OperationType.ENTITY_INTERACT, OperationType.REDSTONE_INTERACT, - OperationType.ENDER_PEARL_TELEPORT + OperationType.ENDER_PEARL_TELEPORT, + OperationType.START_RAID )) .build() ); @@ -172,7 +176,8 @@ public class TrustLevels { OperationType.FILL_BUCKET, OperationType.EMPTY_BUCKET, OperationType.USE_SPAWN_EGG, - OperationType.ENDER_PEARL_TELEPORT + OperationType.ENDER_PEARL_TELEPORT, + OperationType.START_RAID ); @NotNull diff --git a/gradle.properties b/gradle.properties index 0d83cce3..1dc5cd06 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,7 +3,7 @@ javaVersion=17 org.gradle.jvmargs='-Dfile.encoding=UTF-8' org.gradle.daemon=true -plugin_version=1.4.1 +plugin_version=1.4.2 plugin_archive=huskclaims plugin_description=A clean, cross-server compatible grief prevention plugin diff --git a/paper/build.gradle b/paper/build.gradle index d3878ecc..00b4e8db 100644 --- a/paper/build.gradle +++ b/paper/build.gradle @@ -10,7 +10,7 @@ dependencies { compileOnly 'org.jetbrains:annotations:24.1.0' compileOnly 'org.projectlombok:lombok:1.18.34' - compileOnly 'net.william278.cloplib:cloplib-bukkit:1.0.8' + compileOnly 'net.william278.cloplib:cloplib-bukkit:1.0.10' annotationProcessor 'org.projectlombok:lombok:1.18.34' }