fix %value% variable not being replaced during not a valid number msg

Took 47 seconds
This commit is contained in:
Kiran Hart 2022-11-25 14:58:09 -05:00
parent 685f9d445b
commit 47ae641695
No known key found for this signature in database
GPG Key ID: 5F36C7BC79D3EBC3
5 changed files with 7 additions and 7 deletions

View File

@ -71,7 +71,7 @@ public class CommandMinPrice extends AbstractCommand {
}
if (!NumberUtils.isNumeric(args[1])) {
instance.getLocale().getMessage("general.notanumber").sendPrefixedMessage(player);
instance.getLocale().getMessage("general.notanumber").processPlaceholder("value", args[1]).sendPrefixedMessage(player);
return ReturnType.FAILURE;
}

View File

@ -270,7 +270,7 @@ public class GUIAuctionHouse extends AbstractPlaceholderGui {
string = ChatColor.stripColor(string);
if (!NumberUtils.isDouble(string)) {
AuctionHouse.getInstance().getLocale().getMessage("general.notanumber").sendPrefixedMessage(player);
AuctionHouse.getInstance().getLocale().getMessage("general.notanumber").processPlaceholder("value", string).sendPrefixedMessage(player);
return false;
}

View File

@ -90,7 +90,7 @@ public class GUIBid extends AbstractPlaceholderGui {
string = ChatColor.stripColor(string);
if (!NumberUtils.isDouble(string)) {
AuctionHouse.getInstance().getLocale().getMessage("general.notanumber").sendPrefixedMessage(player);
AuctionHouse.getInstance().getLocale().getMessage("general.notanumber").processPlaceholder("value", string).sendPrefixedMessage(player);
return false;
}

View File

@ -170,7 +170,7 @@ public final class GUISellAuction extends AbstractPlaceholderGui {
string = ChatColor.stripColor(string);
if (!NumberUtils.isDouble(string)) {
AuctionHouse.getInstance().getLocale().getMessage("general.notanumber").sendPrefixedMessage(player);
AuctionHouse.getInstance().getLocale().getMessage("general.notanumber").processPlaceholder("value", string).sendPrefixedMessage(player);
return false;
}
@ -214,7 +214,7 @@ public final class GUISellAuction extends AbstractPlaceholderGui {
string = ChatColor.stripColor(string);
if (!NumberUtils.isDouble(string)) {
AuctionHouse.getInstance().getLocale().getMessage("general.notanumber").sendPrefixedMessage(player);
AuctionHouse.getInstance().getLocale().getMessage("general.notanumber").processPlaceholder("value", string).sendPrefixedMessage(player);
return false;
}
@ -264,7 +264,7 @@ public final class GUISellAuction extends AbstractPlaceholderGui {
string = ChatColor.stripColor(string);
if (!NumberUtils.isDouble(string)) {
AuctionHouse.getInstance().getLocale().getMessage("general.notanumber").sendPrefixedMessage(player);
AuctionHouse.getInstance().getLocale().getMessage("general.notanumber").processPlaceholder("value", string).sendPrefixedMessage(player);
return false;
}

View File

@ -158,7 +158,7 @@ public final class GUISellBin extends AbstractPlaceholderGui {
string = ChatColor.stripColor(string);
if (!NumberUtils.isDouble(string)) {
AuctionHouse.getInstance().getLocale().getMessage("general.notanumber").sendPrefixedMessage(player);
AuctionHouse.getInstance().getLocale().getMessage("general.notanumber").processPlaceholder("value", string).sendPrefixedMessage(player);
return false;
}