Change drop timeout?

Discussion in 'Plugin Development' started by LucasEmanuel, May 24, 2012.

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

    LucasEmanuel

    Hi, im trying to create a method of resetting the world without restarting the map or server. It will now reset all broken and placed blocks and chests. The only thing i have left is removing all dropped items on the ground.

    Is there a way of changing the time it takes for a dropped item to get deleted from 5 minutes to like 10 seconds?
     
  2. Offline

    Njol

    I think you can simply loop through all entities of the world, check if they're instanceof Item and remove them if this is the case.
     
Thread Status:
Not open for further replies.

Share This Page