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