Open custom container command
knokko opened this issue ยท 2 comments
For integration with other plug-ins, it would be nice to add a command like /kci container open <containerName> <playerName>
. (and a similar command to close containers).
For now, I should only allow this command to be used on Ender containers, see #166
Maybe, I can also allow block-stationed containers in the future.
I don't think this command will ever work on pocket containers.
This is going to be a bit more complicated than I initially expected:
- the container name can contain spaces (a minor problem)
- I would also need to specify at which location the player should open the container menu (and check if there is even a container instance at that location). This is in case it is about a placed custom container.
- I would also need to specify a different way for pocket containers: players can have more than 1 pocket container in their inventory...
I will postpone this issue.