Why cant I use setDrops on PlayerDeath?

Vrysed

New Member
Im trying to make it when a player dies their items don't drop and just clear so I tried making the setDrop([]) so nothing will drop but it wont work
how do I make it so when a player dies nothing will dropScreenshot_130.png
 

nbpe

Member
event.setDrops(null);

The .setDrops() method requires an array of Item objects (Item[]), and you've not input any parameters for the function call. You need to either input null, or create an empty Item[] object and input that.
 
Top