I want to type like
/give XX to Frank
and an item will appear in a chest.
i cannot use the chest event in the Command event.
I want to type like
/give XX to Frank
and an item will appear in a chest.
i cannot use the chest event in the Command event.
What "chest event" are you trying to use exactly? In your case you have to get the according chest from the World class (see getChest()) and use the insertNewItem() method to store an item int