From bdbe3282d7f93d3bea960746ee1c71d2b0faca61 Mon Sep 17 00:00:00 2001 From: 502647092 Date: Tue, 18 Aug 2015 20:28:30 +0800 Subject: [PATCH] fix tp tip display error... --- .../SimpleEssential/teleport/TeleportControl.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cn/citycraft/SimpleEssential/teleport/TeleportControl.java b/src/cn/citycraft/SimpleEssential/teleport/TeleportControl.java index 55acf92..73884af 100644 --- a/src/cn/citycraft/SimpleEssential/teleport/TeleportControl.java +++ b/src/cn/citycraft/SimpleEssential/teleport/TeleportControl.java @@ -56,8 +56,8 @@ public class TeleportControl { target = player; loc = ti.getTarget().getLocation(); } - player.sendMessage(TpControlName + Language.getMessage("Teleport.accept")); - target.sendMessage(TpControlName + Language.getMessage("Teleport.acceptfrom")); + player.sendMessage(TpControlName + Language.getMessage("Teleport.accept", target.getDisplayName())); + target.sendMessage(TpControlName + Language.getMessage("Teleport.acceptfrom", player.getDisplayName())); magicTeleport(target, loc, TpDelay); return; } @@ -104,8 +104,8 @@ public class TeleportControl { if (ti != null) { Player target = ti.getTarget(); if (target.isOnline()) { - player.sendMessage(TpControlName + Language.getMessage("Teleport.deny")); - target.sendMessage(TpControlName + Language.getMessage("Teleport.denyfrom")); + player.sendMessage(TpControlName + Language.getMessage("Teleport.deny", target.getDisplayName())); + target.sendMessage(TpControlName + Language.getMessage("Teleport.denyfrom", player.getDisplayName())); } return; }