/getitem - Also get items by `dbName`
Stuyk opened this issue · 2 comments
Stuyk commented
Currently the /getitem
command only gets items based on their actual name.
Needs to support fetching items by dbName
which can be done with this function:
- Make the
/getitem
check throughItemFactory.get
first. - If the result is undefined or null
- Try fetching by name
- if still undefined or null; tell the player it was not found
ItsSpencer commented
because I am somehow motivated... i can do it
Booster1212 commented
Should support quantity param as well instead of default 1