Show warp teleport status to teleport owner.

This commit is contained in:
KHobbits 2014-06-28 18:10:32 +01:00
parent 8e7589e450
commit 549500eaf2

View File

@ -256,6 +256,10 @@ public class Teleport implements net.ess3.api.ITeleport
{
Location loc = ess.getWarps().getWarp(warp);
teleportee.sendMessage(tl("warpingTo", warp, loc.getWorld().getName(), loc.getBlockX(), loc.getBlockY(), loc.getBlockZ()));
if (!teleportee.equals(teleportOwner))
{
teleportOwner.sendMessage(tl("warpingTo", warp, loc.getWorld().getName(), loc.getBlockX(), loc.getBlockY(), loc.getBlockZ()));
}
teleport(teleportee, new LocationTarget(loc), chargeFor, cause);
}