mirror of
https://e.coding.net/circlecloud/SimpleEssential.git
synced 2025-01-06 12:18:56 +00:00
fix tp tip display error...
This commit is contained in:
parent
0ceb930e86
commit
bdbe3282d7
@ -56,8 +56,8 @@ public class TeleportControl {
|
|||||||
target = player;
|
target = player;
|
||||||
loc = ti.getTarget().getLocation();
|
loc = ti.getTarget().getLocation();
|
||||||
}
|
}
|
||||||
player.sendMessage(TpControlName + Language.getMessage("Teleport.accept"));
|
player.sendMessage(TpControlName + Language.getMessage("Teleport.accept", target.getDisplayName()));
|
||||||
target.sendMessage(TpControlName + Language.getMessage("Teleport.acceptfrom"));
|
target.sendMessage(TpControlName + Language.getMessage("Teleport.acceptfrom", player.getDisplayName()));
|
||||||
magicTeleport(target, loc, TpDelay);
|
magicTeleport(target, loc, TpDelay);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -104,8 +104,8 @@ public class TeleportControl {
|
|||||||
if (ti != null) {
|
if (ti != null) {
|
||||||
Player target = ti.getTarget();
|
Player target = ti.getTarget();
|
||||||
if (target.isOnline()) {
|
if (target.isOnline()) {
|
||||||
player.sendMessage(TpControlName + Language.getMessage("Teleport.deny"));
|
player.sendMessage(TpControlName + Language.getMessage("Teleport.deny", target.getDisplayName()));
|
||||||
target.sendMessage(TpControlName + Language.getMessage("Teleport.denyfrom"));
|
target.sendMessage(TpControlName + Language.getMessage("Teleport.denyfrom", player.getDisplayName()));
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user