This commit is contained in:
NotMyFault 2021-07-31 10:43:11 +02:00
parent 89e17bb468
commit 6e7bd0a536
No known key found for this signature in database
GPG Key ID: 158F5701A6AAD00C
4 changed files with 4 additions and 4 deletions

View File

@ -314,7 +314,7 @@ public class Auto extends SubCommand {
cost = (size_x * size_z) * cost; cost = (size_x * size_z) * cost;
if (cost > 0d) { if (cost > 0d) {
if (!this.econHandler.isSupported()) { if (!this.econHandler.isSupported()) {
player.sendMessage(TranslatableCaption.of("economy.vault_not_found")); player.sendMessage(TranslatableCaption.of("economy.vault_or_consumer_null"));
return false; return false;
} }
if (!force && this.econHandler.getMoney(player) < cost) { if (!force && this.econHandler.getMoney(player) < cost) {

View File

@ -98,7 +98,7 @@ public class Buy extends Command {
throw new CommandException(TranslatableCaption.of("economy.not_for_sale")); throw new CommandException(TranslatableCaption.of("economy.not_for_sale"));
} }
checkTrue(this.econHandler.isSupported(), checkTrue(this.econHandler.isSupported(),
TranslatableCaption.of("economy.vault_not_found") TranslatableCaption.of("economy.vault_or_consumer_null")
); );
checkTrue( checkTrue(
this.econHandler.getMoney(player) >= price, this.econHandler.getMoney(player) >= price,

View File

@ -151,7 +151,7 @@ public class Claim extends SubCommand {
double cost = costExr.evaluate(currentPlots); double cost = costExr.evaluate(currentPlots);
if (cost > 0d) { if (cost > 0d) {
if (!this.econHandler.isSupported()) { if (!this.econHandler.isSupported()) {
player.sendMessage(TranslatableCaption.of("economy.vault_not_found")); player.sendMessage(TranslatableCaption.of("economy.vault_or_consumer_null"));
return false; return false;
} }
if (this.econHandler.getMoney(player) < cost) { if (this.econHandler.getMoney(player) < cost) {

View File

@ -112,7 +112,7 @@
"tutorial.rate_this": "<prefix><gray>Rate this plot!</gray>", "tutorial.rate_this": "<prefix><gray>Rate this plot!</gray>",
"tutorial.comment_this": "<prefix><gray>Leave some feedback on this plot: <plot>.</gray>", "tutorial.comment_this": "<prefix><gray>Leave some feedback on this plot: <plot>.</gray>",
"economy.econ_disabled": "<prefix><red>Economy is not enabled.</red>", "economy.econ_disabled": "<prefix><red>Economy is not enabled.</red>",
"economy.vault_not_found": "<prefix><red>Vault is not installed. No Vault-like economy service can be provided.</red>", "economy.vault_or_consumer_null": "<prefix><red>Economy isn't initialized. Make sure Vault and an economy service plugin is installed.</red>",
"economy.cannot_afford_plot": "<prefix><red>You cannot afford to buy this plot. It costs <gold><money></gold>. You have <gold><balance></gold>.</red>", "economy.cannot_afford_plot": "<prefix><red>You cannot afford to buy this plot. It costs <gold><money></gold>. You have <gold><balance></gold>.</red>",
"economy.not_for_sale": "<prefix><red>This plot is not for sale.</red>", "economy.not_for_sale": "<prefix><red>This plot is not for sale.</red>",
"economy.cannot_buy_own": "<prefix><red>You cannot buy your own plot.</red>", "economy.cannot_buy_own": "<prefix><red>You cannot buy your own plot.</red>",