mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 13:16:45 +01:00
Left over from 89e17bb468
This commit is contained in:
parent
89e17bb468
commit
6e7bd0a536
@ -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) {
|
||||||
|
@ -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,
|
||||||
|
@ -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) {
|
||||||
|
@ -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>",
|
||||||
|
Loading…
Reference in New Issue
Block a user