Update ShopManager.java

Former-commit-id: 9f1aef36955929467a782a318d2ebc02213d2507 [formerly 22e45a6ab425e990fbcf35c6cfcd58804153fd62]
Former-commit-id: 7cabe8a7e0e6ea78bbb809037bd711916429510b
This commit is contained in:
jho5245 authored and GitHub committed 2019-11-16 21:28:47 +09:00
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));