mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-16 11:37:30 +02:00
Fix null teleport costs.
This commit is contained in:
@@ -110,7 +110,10 @@ public class TimedTeleport implements Runnable
|
|||||||
{
|
{
|
||||||
cancelTimer(false);
|
cancelTimer(false);
|
||||||
teleportUser.sendMessage(_("teleportationCommencing"));
|
teleportUser.sendMessage(_("teleportationCommencing"));
|
||||||
|
if (timer_chargeFor != null)
|
||||||
|
{
|
||||||
timer_chargeFor.isAffordableFor(teleportOwner);
|
timer_chargeFor.isAffordableFor(teleportOwner);
|
||||||
|
}
|
||||||
if (timer_respawn)
|
if (timer_respawn)
|
||||||
{
|
{
|
||||||
teleport.respawnNow(teleportUser, timer_cause);
|
teleport.respawnNow(teleportUser, timer_cause);
|
||||||
|
Reference in New Issue
Block a user