mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-28 19:11:53 +01:00
If we are modifying money, force transaction clear, this is important.
This commit is contained in:
parent
f726035660
commit
2ac1ce4f56
@ -126,7 +126,8 @@ public abstract class UserData extends PlayerExtension implements IConf
|
|||||||
}
|
}
|
||||||
money = maxMoney;
|
money = maxMoney;
|
||||||
}
|
}
|
||||||
else {
|
else
|
||||||
|
{
|
||||||
money = value;
|
money = value;
|
||||||
}
|
}
|
||||||
if (money.compareTo(minMoney) < 0)
|
if (money.compareTo(minMoney) < 0)
|
||||||
@ -134,7 +135,7 @@ public abstract class UserData extends PlayerExtension implements IConf
|
|||||||
money = minMoney;
|
money = minMoney;
|
||||||
}
|
}
|
||||||
config.setProperty("money", money);
|
config.setProperty("money", money);
|
||||||
config.save();
|
stopTransaction();
|
||||||
}
|
}
|
||||||
private Map<String, Object> homes;
|
private Map<String, Object> homes;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user