mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-24 17:39:52 -05:00
Update ShopManager.java
Former-commit-id: 9f1aef36955929467a782a318d2ebc02213d2507 [formerly 22e45a6ab425e990fbcf35c6cfcd58804153fd62] Former-commit-id: 7cabe8a7e0e6ea78bbb809037bd711916429510b
This commit is contained in:
1 parent
d560969c3d
commit
b6ec7256e4
1 file changed
+3
-3
@@ -204,9 +204,9 @@ public class ShopManager {
|
||||
if (plugin.getConfig().getBoolean("whole-number-prices-only")) {
|
||||
try {
|
||||
price = Integer.parseInt(message);
|
||||
} catch (NumberFormatException e) {
|
||||
} catch (NumberFormatException ex2) {
|
||||
// input is number, but not Integer
|
||||
Util.debugLog(ex.getMessage());
|
||||
Util.debugLog(ex2.getMessage());
|
||||
p.sendMessage(MsgUtil.getMessage("not-a-integer", p, message));
|
||||
return;
|
||||
}
|
||||
@@ -214,7 +214,7 @@ public class ShopManager {
|
||||
price = Double.parseDouble(message);
|
||||
}
|
||||
|
||||
} catch (NumberFormatException e) {
|
||||
} catch (NumberFormatException ex) {
|
||||
//No number input
|
||||
Util.debugLog(ex.getMessage());
|
||||
p.sendMessage(MsgUtil.getMessage("not-a-number", p, message));
|
||||
|
||||
Reference in new issue
Block a user