Skip to content

Commit

Permalink
Fix null teleport costs.
Browse files Browse the repository at this point in the history
  • Loading branch information
khobbits committed Mar 23, 2014
1 parent 0b5718f commit 3538728
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Essentials/src/com/earth2me/essentials/TimedTeleport.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,10 @@ public void run()
{
cancelTimer(false);
teleportUser.sendMessage(_("teleportationCommencing"));
timer_chargeFor.isAffordableFor(teleportOwner);
if (timer_chargeFor != null)
{
timer_chargeFor.isAffordableFor(teleportOwner);
}
if (timer_respawn)
{
teleport.respawnNow(teleportUser, timer_cause);
Expand Down

0 comments on commit 3538728

Please sign in to comment.