From 1b48eba6c7effbf868f7c1d2028011d5eb9768b4 Mon Sep 17 00:00:00 2001 From: ZhangYuheng Date: Sat, 12 Oct 2024 15:19:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E5=9C=A81.21+?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E4=B8=8B=E6=97=A0=E6=B3=95=E6=89=93=E5=BC=80?= =?UTF-8?q?=E9=93=81=E7=A0=A7=E6=96=87=E6=9C=AC=E8=BE=93=E5=85=A5UI?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dominion/events/DominionCreateEvent.java | 23 +++++++++++++++++++ build.gradle.kts | 4 ++-- .../dominion/uis/cuis/CreateDominion.java | 2 +- 3 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 api/src/main/java/cn/lunadeer/dominion/events/DominionCreateEvent.java diff --git a/api/src/main/java/cn/lunadeer/dominion/events/DominionCreateEvent.java b/api/src/main/java/cn/lunadeer/dominion/events/DominionCreateEvent.java new file mode 100644 index 00000000..2e86cbd9 --- /dev/null +++ b/api/src/main/java/cn/lunadeer/dominion/events/DominionCreateEvent.java @@ -0,0 +1,23 @@ +package cn.lunadeer.dominion.events; + +import org.bukkit.event.Cancellable; +import org.bukkit.event.Event; +import org.bukkit.event.HandlerList; +import org.jetbrains.annotations.NotNull; + +public class DominionCreateEvent extends Event implements Cancellable { + @Override + public boolean isCancelled() { + return false; + } + + @Override + public void setCancelled(boolean cancel) { + + } + + @Override + public @NotNull HandlerList getHandlers() { + return null; + } +} diff --git a/build.gradle.kts b/build.gradle.kts index 70c99b64..7dbc1c54 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -8,10 +8,10 @@ plugins { var BuildFull = properties["BuildFull"].toString() == "true" var libraries = listOf() -libraries = libraries + "cn.lunadeer:MinecraftPluginUtils:2.0.2" +libraries = libraries + "cn.lunadeer:MinecraftPluginUtils:2.0.7" group = "cn.lunadeer" -version = "2.13.6-beta" +version = "2.13.7-beta" java { toolchain.languageVersion.set(JavaLanguageVersion.of(17)) diff --git a/core/src/main/java/cn/lunadeer/dominion/uis/cuis/CreateDominion.java b/core/src/main/java/cn/lunadeer/dominion/uis/cuis/CreateDominion.java index 72abb7d7..82b64072 100644 --- a/core/src/main/java/cn/lunadeer/dominion/uis/cuis/CreateDominion.java +++ b/core/src/main/java/cn/lunadeer/dominion/uis/cuis/CreateDominion.java @@ -34,7 +34,7 @@ public void handleData(String input) { Map points = autoPoints(sender); operator.getResponse().thenAccept(result -> { if (Objects.equals(result.getStatus(), AbstractOperator.Result.SUCCESS)) { - DominionManage.show(sender, new String[]{input}); + DominionManage.show(sender, new String[]{"manage", input}); } }); DominionController.create(operator, input, points.get(0), points.get(1));