mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 20:29:20 +00:00
Cleanup.
This commit is contained in:
parent
862f3aad59
commit
6ab57b9abe
2 changed files with 6 additions and 10 deletions
|
@ -5,9 +5,7 @@ import com.earth2me.essentials.commands.IEssentialsCommand;
|
||||||
import com.earth2me.essentials.signs.EssentialsSign;
|
import com.earth2me.essentials.signs.EssentialsSign;
|
||||||
import com.earth2me.essentials.signs.Signs;
|
import com.earth2me.essentials.signs.Signs;
|
||||||
import com.earth2me.essentials.textreader.IText;
|
import com.earth2me.essentials.textreader.IText;
|
||||||
import com.earth2me.essentials.textreader.KeywordReplacer;
|
|
||||||
import com.earth2me.essentials.textreader.SimpleTextInput;
|
import com.earth2me.essentials.textreader.SimpleTextInput;
|
||||||
import com.earth2me.essentials.textreader.SimpleTextPager;
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.text.MessageFormat;
|
import java.text.MessageFormat;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
@ -539,14 +537,14 @@ public class Settings implements ISettings
|
||||||
}
|
}
|
||||||
return max;
|
return max;
|
||||||
}
|
}
|
||||||
|
|
||||||
private final static double MINMONEY = -10000000000000.0;
|
private final static double MINMONEY = -10000000000000.0;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public double getMinMoney()
|
public double getMinMoney()
|
||||||
{
|
{
|
||||||
double min = config.getDouble("min-money", MINMONEY);
|
double min = config.getDouble("min-money", MINMONEY);
|
||||||
if (min > 0) {
|
if (min > 0)
|
||||||
|
{
|
||||||
min = -min;
|
min = -min;
|
||||||
}
|
}
|
||||||
if (min < MINMONEY)
|
if (min < MINMONEY)
|
||||||
|
|
|
@ -7,7 +7,6 @@ import java.util.Calendar;
|
||||||
import java.util.GregorianCalendar;
|
import java.util.GregorianCalendar;
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
import org.bukkit.ChatColor;
|
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
@ -160,7 +159,6 @@ public class User extends UserData implements Comparable<User>, IReplyTo, IUser
|
||||||
public boolean canAfford(final double cost, final boolean permcheck)
|
public boolean canAfford(final double cost, final boolean permcheck)
|
||||||
{
|
{
|
||||||
final double mon = getMoney();
|
final double mon = getMoney();
|
||||||
ess.getLogger().log(Level.INFO, "min cash is " + ess.getSettings().getMinMoney());
|
|
||||||
if (!permcheck || isAuthorized("essentials.eco.loan"))
|
if (!permcheck || isAuthorized("essentials.eco.loan"))
|
||||||
{
|
{
|
||||||
return (mon - cost) > ess.getSettings().getMinMoney();
|
return (mon - cost) > ess.getSettings().getMinMoney();
|
||||||
|
|
Loading…
Reference in a new issue