mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-14 05:01:28 +00:00
Fix null teleport costs.
This commit is contained in:
parent
0b5718f7ff
commit
3538728733
1 changed files with 4 additions and 1 deletions
|
@ -110,7 +110,10 @@ public class TimedTeleport implements Runnable
|
|||
{
|
||||
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);
|
||||
|
|
Loading…
Reference in a new issue