feat(informer): add case for when sub command is passed a single param

Currently returns:
- Item at given slot number
- Entity that matches given name
This commit is contained in:
jay 2021-01-17 16:20:20 +05:00
parent 63849e0729
commit 7cbfa16476

View File

@ -66,6 +66,18 @@ function command(message_parts) {
break; break;
case 2:
switch (message_parts[0]) {
case "item":
item(message_parts[1])
break
case "entity":
default:
entity(message_parts[1])
break;
}
break
case 4: case 4:
switch (message_parts[0]) { switch (message_parts[0]) {
case "block": case "block":