Console error with incorrectly formatted command
Bronski opened this issue · 6 comments
This is sort of user error, in that the command wasn't formatted correctly, but I didn't know if you wanted to add better error handling for this command:
06:27:41 INFO: Player issued server command: /ps contract d 1
06:27:41 INFO: Error: For input string: "d"
06:27:41 INFO: java.lang.NumberFormatException.forInputString(Unknown Source)
06:27:41 INFO: java.lang.Integer.parseInt(Unknown Source)
06:27:41 INFO: java.lang.Integer.parseInt(Unknown Source)
06:27:41 INFO: [WorldGuard] º7WG: ºdJetFighter99º6 (use) ºfWater bucket (#326).
CB 2974 / PS 965
You have the command backwards. It's:
/ps contract [num] [direction]
/ps contract [u] [d] [n] [s] [e] [w]
I know the user didn't use the correct syntax. I just didn't know if people being able to cause that error was an issue for you. Disregard if not.