mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-10-04 18:47:43 +02:00
Don't check for loan permission is there is no cost.
This commit is contained in:
parent
d43cb95d72
commit
7c687831bc
@ -176,6 +176,7 @@ public class User extends UserData implements Comparable<User>, IReplyTo, IUser
|
||||
|
||||
public boolean canAfford(final double cost, final boolean permcheck)
|
||||
{
|
||||
if (cost <= 0) { return true; }
|
||||
final double mon = getMoney();
|
||||
if (!permcheck || isAuthorized("essentials.eco.loan"))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user