Solved PrepareItemCraftEvent + Permission remove after creation

Discussion in 'Plugin Development' started by Scipione, Jan 12, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    Scipione

    Hey all,

    i need to grant a permission on a specific PrepareItemCraftEvent (already works)
    but this needs to be removed after the item was created.
    Any hint how i could achieve this ?

    //EDIT: i use vault with PEX
     
  2. Offline

    krazytraynz

    You could try adding their name to a HashMap when they're granted the permission, and take it away if they're not. Then just remove them from it after the event is called.
     
  3. Offline

    Scipione

    sometimes its something that simple and you start thinking way to complicated...

    thanks man ^^ its working now :)
     
    krazytraynz likes this.
Thread Status:
Not open for further replies.

Share This Page