Open rube200 opened 5 years ago
Without quotes it would "try" to parse speed as the second variable while only an amount is supported for it.
The line here gets the amount: https://github.com/RocketMod/Rocket.Unturned/blob/fa73a1c7a361a9039f81f7bb76652a1a429b185d/Rocket.Unturned/Commands/CommandItem.cs#L50
There could be a couple ways of fixing the trace, one could be to do a TryGet, the other would be probably the most simple one is to make a temp amount var as string, switch the type from the get line from byte to a string to put into the temp var then run an if statement on it checking for proper format(one file modified and only around 6-7 lines of code needing to be added/changed.).
cartman is right, beside that currently " " (strings with spaces) arguments are not implemented in RM5
*Console* Rube200 has executed command: "i "revolver speed""
Chat*Console* Rube200 has executed command: "i revolver speed"
ChatError: