Skip to content

Commit

Permalink
修复了在1.21+版本下无法打开铁砧文本输入UI的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ColdeZhang committed Oct 12, 2024
1 parent 01b329a commit 1b48eba
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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;
}
}
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ plugins {

var BuildFull = properties["BuildFull"].toString() == "true"
var libraries = listOf<String>()
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))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public void handleData(String input) {
Map<Integer, Location> 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));
Expand Down

0 comments on commit 1b48eba

Please sign in to comment.