mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-04 19:46:27 +00:00
Fix warp sign costs.
This commit is contained in:
parent
2d5c1fd51c
commit
3b35763fef
2 changed files with 5 additions and 3 deletions
|
@ -3,6 +3,7 @@ package com.earth2me.essentials;
|
|||
import static com.earth2me.essentials.I18n._;
|
||||
import com.earth2me.essentials.utils.DateUtil;
|
||||
import com.earth2me.essentials.utils.LocationUtil;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Calendar;
|
||||
import java.util.GregorianCalendar;
|
||||
import net.ess3.api.IEssentials;
|
||||
|
@ -171,8 +172,8 @@ public class Teleport implements net.ess3.api.ITeleport
|
|||
{
|
||||
double delay = ess.getSettings().getTeleportDelay();
|
||||
|
||||
Trade cashCharge = null;
|
||||
if (chargeFor != null)
|
||||
Trade cashCharge = chargeFor;
|
||||
if (chargeFor != null && !chargeFor.getCommandCost(teleportOwner).equals(BigDecimal.ZERO))
|
||||
{
|
||||
chargeFor.isAffordableFor(teleportOwner);
|
||||
cashCharge = new Trade(chargeFor.getCommandCost(teleportOwner), ess);
|
||||
|
|
|
@ -7,6 +7,7 @@ import java.math.BigDecimal;
|
|||
import java.util.HashSet;
|
||||
import java.util.Locale;
|
||||
import java.util.Set;
|
||||
import java.util.logging.Level;
|
||||
import net.ess3.api.IEssentials;
|
||||
import net.ess3.api.MaxMoneyException;
|
||||
import net.ess3.api.events.SignBreakEvent;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue