#Thread
1 messages · Page 1 of 1 (latest)
ok one sec just finishing up a bit
ok look at these (not quite complete for you to finish)
TargetCommand https://paste.md-5.net/gehipunenu.java
TargetGUI https://paste.md-5.net/juhusajedi.java
I removed the permission check as you can add that to teh command entry in your plugin.yml
line 33 creates a new instance of TargetGUI
But I already have a InvetoryManager which creates and opens inventories
I dont want to get rid of that
you can adapt it
the inventory has to reside in the instance its being used in so you can easily check in the Listener for its instance
or at least its easier to do that way
issuing your command should be the trigger to open th einventory
you shoudl not be calling it from elsewhere