Spawned Items restrictions..

Discussion in 'Plugin Development' started by boduzapho, Jan 22, 2012.

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

    boduzapho

    I am looking to create a mod that allows me to restrict spawned items to the person who spawned them, no trading no picking up, in other words only the person who spawned them can actually use them. Anyone have any Idea where I can set that property on an object?
     
  2. Offline

    Nitnelave

    You can't. You would have to implement that yourself. You could create a hashmap between the entityId of the item spawned and the player's name, and then listen for itemPickUpEvent or something like that and cancel if that doesn't match. You wiuld also have to clean the map regularly
     
Thread Status:
Not open for further replies.

Share This Page