NOLOOTERS This is a script similar to
AntiLootSteal (I highly recommend using it as it is a great plugin, has many more options and is probably much more efficient)
When a player kills an entity, he/she gains ownership over the dropped items so that no other player can pick those items up for a certain amount of time after
All messages are customizable
All delays are customizable
Requires
Skript 2.2 dev 36 and
higher* Paper 1.8.8 and
higher Tested on Skript 2.5.1
*If you require the PREDEV36 version, please message me on discord or alternatively add this to the code of this file:
Code (Text):
#FROM HERE FOR 1.8.8 PRE DEV 36 SERVERS #REQUIRES SKRIPT REFLECT
#I DONT THINK ENTITY UUID WORKS IN THESE VERSIONS OF SKRIPT SO THIS MIGHT BE USELESS!
import:
org.bukkit.event.entity.ItemMergeEvent as merging
on merging:
set {_e} to event.getEntity()'s uuid
{droppednow::%{_e}%} is set
event.setCancelled(true)