mirror of
https://github.com/ColdeZhang/Dominion.git
synced 2025-02-05 01:39:29 +08:00
将“领地没有传送点”警告从控制台警告修改为玩家消息提示警告
This commit is contained in:
parent
f08e0f51e2
commit
0e1eb53465
2
pom.xml
2
pom.xml
@ -6,7 +6,7 @@
|
||||
|
||||
<groupId>cn.lunadeer</groupId>
|
||||
<artifactId>Dominion</artifactId>
|
||||
<version>1.35.4-beta</version>
|
||||
<version>1.35.5-beta</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>Dominion</name>
|
||||
|
@ -433,10 +433,10 @@ public class DominionOperate {
|
||||
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 -> {
|
||||
|
Loading…
Reference in New Issue
Block a user