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));