mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-10 16:48:05 +02:00
Allow people to hit exactly 'min money'.
This commit is contained in:
@@ -161,7 +161,7 @@ public class User extends UserData implements Comparable<User>, IReplyTo, IUser
|
|||||||
final double mon = getMoney();
|
final double mon = getMoney();
|
||||||
if (!permcheck || isAuthorized("essentials.eco.loan"))
|
if (!permcheck || isAuthorized("essentials.eco.loan"))
|
||||||
{
|
{
|
||||||
return (mon - cost) > ess.getSettings().getMinMoney();
|
return (mon - cost) >= ess.getSettings().getMinMoney();
|
||||||
}
|
}
|
||||||
return cost <= mon;
|
return cost <= mon;
|
||||||
}
|
}
|
||||||
|
@@ -203,7 +203,7 @@ public class User extends UserBase implements IUser
|
|||||||
final double mon = getMoney();
|
final double mon = getMoney();
|
||||||
if (isAuthorized("essentials.eco.loan"))
|
if (isAuthorized("essentials.eco.loan"))
|
||||||
{
|
{
|
||||||
return (mon - cost) > ess.getSettings().getMinMoney();
|
return (mon - cost) >= ess.getSettings().getMinMoney();
|
||||||
}
|
}
|
||||||
return cost <= mon;
|
return cost <= mon;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user