mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-26 11:07:55 +01:00
Show warp teleport status to teleport owner.
This commit is contained in:
parent
8e7589e450
commit
549500eaf2
@ -256,6 +256,10 @@ public class Teleport implements net.ess3.api.ITeleport
|
|||||||
{
|
{
|
||||||
Location loc = ess.getWarps().getWarp(warp);
|
Location loc = ess.getWarps().getWarp(warp);
|
||||||
teleportee.sendMessage(tl("warpingTo", warp, loc.getWorld().getName(), loc.getBlockX(), loc.getBlockY(), loc.getBlockZ()));
|
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);
|
teleport(teleportee, new LocationTarget(loc), chargeFor, cause);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user