mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-06-25 02:04:44 +02:00
Bug through last Economy PR - Withdrawn money for non-affordable plots (#3036)
* Replaced economy supported (Vault) check within cost condition with a pre-eliminating if-guard * Negate mob-place flag debug message * Actually prevent purchase of plots if they can't afford it (whoops) Co-authored-by: NotMyFault <mc.cache@web.de>
This commit is contained in:

committed by
GitHub

parent
24eebe6711
commit
eb9d7e97d9
@ -323,6 +323,7 @@ public class Auto extends SubCommand {
|
||||
Template.of("money", this.econHandler.format(cost)),
|
||||
Template.of("balance", this.econHandler.format(this.econHandler.getMoney(player)))
|
||||
);
|
||||
return false;
|
||||
}
|
||||
this.econHandler.withdrawMoney(player, cost);
|
||||
player.sendMessage(
|
||||
|
@ -161,6 +161,7 @@ public class Claim extends SubCommand {
|
||||
Template.of("money", this.econHandler.format(cost)),
|
||||
Template.of("balance", this.econHandler.format(this.econHandler.getMoney(player)))
|
||||
);
|
||||
return false;
|
||||
}
|
||||
this.econHandler.withdrawMoney(player, cost);
|
||||
player.sendMessage(
|
||||
|
Reference in New Issue
Block a user