PreciousStones

PreciousStones

269k Downloads

Console error with incorrectly formatted command

Bronski opened this issue · 6 comments

commented

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

commented

Whats the d for?

Edit: nm.

commented

You have the command backwards. It's:

/ps contract [num] [direction]
/ps contract [u] [d] [n] [s] [e] [w]

commented

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.

commented

Yea look in plugin.yml inside the jar.

commented

That works.

Is there a permission for /ps contract?

Thanks.

commented

Oh ok, I can do something about that.