#Thread

1 messages · Page 1 of 1 (latest)

keen hedge
#

asd

hollow inlet
#

ok one sec just finishing up a bit

#

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

keen hedge
#

But I already have a InvetoryManager which creates and opens inventories

#

I dont want to get rid of that

hollow inlet
#

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

keen hedge
#

if (args.length == 1) {
if (target != null) {
this.targetGUI.open(player);

#

it does trigger

hollow inlet
#

yes, thats not good. its a single instance

#

if two people use teh command it will open teh same inventory for both

#

I mena, its possible you could keep your class and have the TargetGUI extend it

#

use a single inventory for all admins

#

but then you have issues with closing