diff --git a/src/main/java/city/windmill/cropchance/command/CrossCommand.java b/src/main/java/city/windmill/cropchance/command/CrossCommand.java index c04d62a..cb37697 100644 --- a/src/main/java/city/windmill/cropchance/command/CrossCommand.java +++ b/src/main/java/city/windmill/cropchance/command/CrossCommand.java @@ -120,10 +120,8 @@ public void runCross(ICommandSender sender) { CropChance.LOG.info("Cross simulate end!"); formatResult(sender); - } catch (IllegalArgumentException e) { - msg(sender, e.getMessage()); } catch (Exception e) { - CropChance.LOG.error("Exception throw during crossing", e); + CropChance.LOG.error("Exception thrown during crossing", e); msgEx(sender, e); } }); @@ -148,12 +146,12 @@ public void formatResult(ICommandSender sender) { c.addAttr("Weed", Weeded); c.addAttr("Percent", 100f * Weeded / TryCross) - .text("%") + .text("%%") .commit(); c.addAttr("Cross", Crossed); c.addAttr("Percent", 100f * Crossed / TryCross) - .text("%") + .text("%%") .commit(); c.addSeparator(); c.build();