Clear Inventory event?

Discussion in 'Plugin Development' started by confuserr, Aug 17, 2012.

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

    confuserr

    Is there some way to detect when another plugin clears a players inventory? And specifically the plugin that clears it?

    Basically, using a plugin which in its update now clears a players inventory at a specific point, unfortunately theres no custom events. I made a plugin which gives players items before this specific point. This clearing inventory is a bit of a pain, is there anyway to cancel it? I assume it getContents() and sets them all to null to clear it.
     
  2. Offline

    Timr

    There's no event for when an inventory is cleared, plugins simply call Player.getInventory().clear();
     
  3. Offline

    confuserr

    Dam it, guess I'll have to think of another way around it :/

    Thanks for your help
     
  4. How about reporting the issue to the plugin causing this instead of making another plugin that attempts to fix it ? :confused:
     
Thread Status:
Not open for further replies.

Share This Page