diff --git a/Core/src/main/java/com/plotsquared/core/command/Auto.java b/Core/src/main/java/com/plotsquared/core/command/Auto.java index d18d9e668..e607d93dc 100644 --- a/Core/src/main/java/com/plotsquared/core/command/Auto.java +++ b/Core/src/main/java/com/plotsquared/core/command/Auto.java @@ -314,7 +314,7 @@ public class Auto extends SubCommand { cost = (size_x * size_z) * cost; if (cost > 0d) { if (!this.econHandler.isSupported()) { - player.sendMessage(TranslatableCaption.of("economy.vault_not_found")); + player.sendMessage(TranslatableCaption.of("economy.vault_or_consumer_null")); return false; } if (!force && this.econHandler.getMoney(player) < cost) { diff --git a/Core/src/main/java/com/plotsquared/core/command/Buy.java b/Core/src/main/java/com/plotsquared/core/command/Buy.java index d8cf1fa60..76d52f968 100644 --- a/Core/src/main/java/com/plotsquared/core/command/Buy.java +++ b/Core/src/main/java/com/plotsquared/core/command/Buy.java @@ -98,7 +98,7 @@ public class Buy extends Command { throw new CommandException(TranslatableCaption.of("economy.not_for_sale")); } checkTrue(this.econHandler.isSupported(), - TranslatableCaption.of("economy.vault_not_found") + TranslatableCaption.of("economy.vault_or_consumer_null") ); checkTrue( this.econHandler.getMoney(player) >= price, diff --git a/Core/src/main/java/com/plotsquared/core/command/Claim.java b/Core/src/main/java/com/plotsquared/core/command/Claim.java index 8d067b6b1..8b2ad3535 100644 --- a/Core/src/main/java/com/plotsquared/core/command/Claim.java +++ b/Core/src/main/java/com/plotsquared/core/command/Claim.java @@ -151,7 +151,7 @@ public class Claim extends SubCommand { double cost = costExr.evaluate(currentPlots); if (cost > 0d) { if (!this.econHandler.isSupported()) { - player.sendMessage(TranslatableCaption.of("economy.vault_not_found")); + player.sendMessage(TranslatableCaption.of("economy.vault_or_consumer_null")); return false; } if (this.econHandler.getMoney(player) < cost) { diff --git a/Core/src/main/resources/lang/messages_en.json b/Core/src/main/resources/lang/messages_en.json index d23b11d70..5aac9e763 100644 --- a/Core/src/main/resources/lang/messages_en.json +++ b/Core/src/main/resources/lang/messages_en.json @@ -112,7 +112,7 @@ "tutorial.rate_this": "Rate this plot!", "tutorial.comment_this": "Leave some feedback on this plot: .", "economy.econ_disabled": "Economy is not enabled.", - "economy.vault_not_found": "Vault is not installed. No Vault-like economy service can be provided.", + "economy.vault_or_consumer_null": "Economy isn't initialized. Make sure Vault and an economy service plugin is installed.", "economy.cannot_afford_plot": "You cannot afford to buy this plot. It costs . You have .", "economy.not_for_sale": "This plot is not for sale.", "economy.cannot_buy_own": "You cannot buy your own plot.",