From: SourceForge.net <no...@so...> - 2010-05-30 23:09:08
|
Feature Requests item #3009299, was opened at 2010-05-31 00:08 Message generated for change (Settings changed) made by kymara You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=351111&aid=3009299&group_id=1111 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Katie Russell (kymara) Assigned to: Nobody/Anonymous (nobody) >Summary: Number format exception with /ban name 0.5 bla Initial Comment: I tried to ban just for a short time so I used a decimal amount as the number is in hours, can we catch this exception e.g. java.lang.NumberFormatException: For input string: "0.05" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) at java.lang.Integer.parseInt(Integer.java:458) at java.lang.Integer.parseInt(Integer.java:499) at games.stendhal.server.actions.admin.BanAction.perform(BanAction.java:33) at games.stendhal.server.actions.admin.AdministrationAction.onAction(AdministrationAction.java:116) at games.stendhal.server.actions.CommandCenter.execute(CommandCenter.java:103) at games.stendhal.server.core.engine.StendhalRPRuleProcessor.execute(StendhalRPRuleProcessor.java:231) at marauroa.server.game.rp.RPScheduler.visit(RPScheduler.java:113) at marauroa.server.game.rp.RPServerManager.run(RPServerManager.java:509) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=351111&aid=3009299&group_id=1111 |