1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-08 23:57:23 +02:00

Show warp teleport status to teleport owner.

This commit is contained in:
KHobbits
2014-06-28 18:10:32 +01:00
parent 5b93b8c467
commit 1405934489

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);
}