修改没有传送点时的警告为玩家消息

This commit is contained in:
zhangyuheng 2024-07-08 01:19:42 +08:00
parent 59ccbbdd5c
commit 4213d14fd6
2 changed files with 2 additions and 3 deletions

View File

@ -167,7 +167,6 @@ public class DominionController {
}
// 显示粒子效果
handleParticle(operator, dominion.getWorld(), dominion.getX1(), dominion.getY1(), dominion.getZ1(), dominion.getX2(), dominion.getY2(), dominion.getZ2(), FAIL);
dominion.setParentDomId(parent_dominion.getId());
operator.setResponse(SUCCESS);
}

View File

@ -140,10 +140,10 @@ public class GlobalTeleport implements PluginMessageListener, Listener {
World world = Dominion.instance.getServer().getWorld(dominionDTO.getWorld());
if (location == null) {
location = new Location(world, center_x, player.getLocation().getY(), center_z);
XLogger.warn("领地 %s 没有设置传送点,将尝试传送到中心点", dominionDTO.getName());
Notification.warn(player, "领地 %s 没有设置传送点,将尝试传送到中心点", dominionDTO.getName());
} else if (!isInDominion(dominionDTO, location)) {
location = new Location(world, center_x, player.getLocation().getY(), center_z);
XLogger.warn("领地 %s 传送点不在领地内,将尝试传送到中心点", dominionDTO.getName());
Notification.warn(player, "领地 %s 传送点不在领地内,将尝试传送到中心点", dominionDTO.getName());
}
if (player.isOnline()) {
Teleport.doTeleportSafely(player, location).thenAccept(b -> {