mirror of
https://github.com/ColdeZhang/Dominion.git
synced 2025-01-12 09:14:26 +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>
|
<groupId>cn.lunadeer</groupId>
|
||||||
<artifactId>Dominion</artifactId>
|
<artifactId>Dominion</artifactId>
|
||||||
<version>1.35.7-beta</version>
|
<version>1.35.8-beta</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<name>Dominion</name>
|
<name>Dominion</name>
|
||||||
|
@ -1,11 +1,9 @@
|
|||||||
package cn.lunadeer.dominion.cuis;
|
package cn.lunadeer.dominion.cuis;
|
||||||
|
|
||||||
import cn.lunadeer.dominion.Dominion;
|
|
||||||
import cn.lunadeer.dominion.controllers.AbstractOperator;
|
import cn.lunadeer.dominion.controllers.AbstractOperator;
|
||||||
import cn.lunadeer.dominion.controllers.BukkitPlayerOperator;
|
import cn.lunadeer.dominion.controllers.BukkitPlayerOperator;
|
||||||
import cn.lunadeer.dominion.controllers.DominionController;
|
import cn.lunadeer.dominion.controllers.DominionController;
|
||||||
import cn.lunadeer.dominion.tuis.dominion.DominionManage;
|
import cn.lunadeer.dominion.tuis.dominion.DominionManage;
|
||||||
import cn.lunadeer.minecraftpluginutils.Notification;
|
|
||||||
import cn.lunadeer.minecraftpluginutils.XLogger;
|
import cn.lunadeer.minecraftpluginutils.XLogger;
|
||||||
import cn.lunadeer.minecraftpluginutils.scui.CuiTextInput;
|
import cn.lunadeer.minecraftpluginutils.scui.CuiTextInput;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
@ -32,10 +30,7 @@ public class CreateDominion {
|
|||||||
XLogger.debug("createDominionCB.run: %s", input);
|
XLogger.debug("createDominionCB.run: %s", input);
|
||||||
|
|
||||||
BukkitPlayerOperator operator = BukkitPlayerOperator.create(sender);
|
BukkitPlayerOperator operator = BukkitPlayerOperator.create(sender);
|
||||||
Map<Integer, Location> points = Dominion.pointsSelect.get(sender.getUniqueId());
|
Map<Integer, Location> points = autoPoints(sender);
|
||||||
if (points == null || points.get(0) == null || points.get(1) == null) {
|
|
||||||
points = autoPoints(sender);
|
|
||||||
}
|
|
||||||
operator.getResponse().thenAccept(result -> {
|
operator.getResponse().thenAccept(result -> {
|
||||||
if (Objects.equals(result.getStatus(), AbstractOperator.Result.SUCCESS)) {
|
if (Objects.equals(result.getStatus(), AbstractOperator.Result.SUCCESS)) {
|
||||||
DominionManage.show(sender, new String[]{"list"});
|
DominionManage.show(sender, new String[]{"list"});
|
||||||
|
Loading…
Reference in New Issue
Block a user