Skip to content

Commit

Permalink
Show warp teleport status to teleport owner.
Browse files Browse the repository at this point in the history
  • Loading branch information
khobbits committed Jun 28, 2014
1 parent 8e7589e commit 549500e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Essentials/src/com/earth2me/essentials/Teleport.java
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,10 @@ public void warp(IUser teleportee, String warp, Trade chargeFor, TeleportCause c
{
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);
}

Expand Down

0 comments on commit 549500e

Please sign in to comment.