mirror of
https://github.com/ColdeZhang/Dominion.git
synced 2024-12-24 14:09:03 +08:00
修复了使用菜单创建领地时不会自动选点或选点错误的问题
This commit is contained in:
parent
e7a5e2b37f
commit
eb9fd31277
2
pom.xml
2
pom.xml
@ -6,7 +6,7 @@
|
||||
|
||||
<groupId>cn.lunadeer</groupId>
|
||||
<artifactId>Dominion</artifactId>
|
||||
<version>1.35.7-beta</version>
|
||||
<version>1.35.8-beta</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>Dominion</name>
|
||||
|
@ -1,11 +1,9 @@
|
||||
package cn.lunadeer.dominion.cuis;
|
||||
|
||||
import cn.lunadeer.dominion.Dominion;
|
||||
import cn.lunadeer.dominion.controllers.AbstractOperator;
|
||||
import cn.lunadeer.dominion.controllers.BukkitPlayerOperator;
|
||||
import cn.lunadeer.dominion.controllers.DominionController;
|
||||
import cn.lunadeer.dominion.tuis.dominion.DominionManage;
|
||||
import cn.lunadeer.minecraftpluginutils.Notification;
|
||||
import cn.lunadeer.minecraftpluginutils.XLogger;
|
||||
import cn.lunadeer.minecraftpluginutils.scui.CuiTextInput;
|
||||
import org.bukkit.Location;
|
||||
@ -32,10 +30,7 @@ public class CreateDominion {
|
||||
XLogger.debug("createDominionCB.run: %s", input);
|
||||
|
||||
BukkitPlayerOperator operator = BukkitPlayerOperator.create(sender);
|
||||
Map<Integer, Location> points = Dominion.pointsSelect.get(sender.getUniqueId());
|
||||
if (points == null || points.get(0) == null || points.get(1) == null) {
|
||||
points = autoPoints(sender);
|
||||
}
|
||||
Map<Integer, Location> points = autoPoints(sender);
|
||||
operator.getResponse().thenAccept(result -> {
|
||||
if (Objects.equals(result.getStatus(), AbstractOperator.Result.SUCCESS)) {
|
||||
DominionManage.show(sender, new String[]{"list"});
|
||||
|
Loading…
Reference in New Issue
Block a user