I was thinking today about how much /dispose seems to upset people and had an excellent idea. I'm not sure if this would be easy to code (let alone possible), but here's my idea:
When an item is dropped by a player, set the nbt tag for age to be 5999. I'm sure anyone who has experience with plugin code/nbteditor knows what this means, but for the common man, here's a quick explanation. Item entities (basically anything you can toss on the ground like a pick or a block) have 2 variables that are unique to item entities: age and health. Age is the variable that allows an item to despawn. After 5 minutes (6,000 ticks), an item despawns. By setting an item's age to 5999 ticks, you make it despawn after .05 seconds. It takes much longer than .05 seconds to pick up a thrown item, so there's no way to give out free gear by hand. This also removes the need for the /dispose command.
In short, setting the age of player-dropped items to 5999 would allow players to dispose of items by simply dropping them rather than opening up the /dispose GUI. This would make players happy by not having to be vulnerable to sort their inventory and it would make the owners happy by making sure there's no abuse by giving stuff away.
@halothe23 @rubik_cube_man
When an item is dropped by a player, set the nbt tag for age to be 5999. I'm sure anyone who has experience with plugin code/nbteditor knows what this means, but for the common man, here's a quick explanation. Item entities (basically anything you can toss on the ground like a pick or a block) have 2 variables that are unique to item entities: age and health. Age is the variable that allows an item to despawn. After 5 minutes (6,000 ticks), an item despawns. By setting an item's age to 5999 ticks, you make it despawn after .05 seconds. It takes much longer than .05 seconds to pick up a thrown item, so there's no way to give out free gear by hand. This also removes the need for the /dispose command.
In short, setting the age of player-dropped items to 5999 would allow players to dispose of items by simply dropping them rather than opening up the /dispose GUI. This would make players happy by not having to be vulnerable to sort their inventory and it would make the owners happy by making sure there's no abuse by giving stuff away.
@halothe23 @rubik_cube_man