mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-09-10 12:02:59 +02:00
fixed command parsing...
This commit is contained in:
parent
5eb35e993a
commit
c03d1001c7
1 changed files with 3 additions and 0 deletions
|
@ -106,6 +106,9 @@ export function parseCommandMessage(message) {
|
|||
const param = params[i];
|
||||
//Remove any extra characters
|
||||
let arg = args[i].trim();
|
||||
if ((arg.startsWith('"') && arg.endsWith('"')) || (arg.startsWith("'") && arg.endsWith("'"))) {
|
||||
arg = arg.substring(1, arg.length-1);
|
||||
}
|
||||
|
||||
//Convert to the correct type
|
||||
switch(param.type) {
|
||||
|
|
Loading…
Add table
Reference in a new issue