Skript where when player dies they get a random gun

Hi i have this plugin for my guns https://www.spigotmc.org/resources/weaponmechanics-guns-in-minecraft-1-12-2-1-20-1.99913/ and i tried to make it my own but it seems that the player has to click respawn for the command to work idk if im being vague here just msg in this thread if you confused.
SpigotMC - High Performance Minecraft
WeaponMechanics | Guns in Minecraft | 1.12.2 - 1.20.1
2 Replies
Admincraft Meta
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close !close !solved !answered
Requested by omegartlx#0
Lildirt
Lildirt2y ago
yeah, this reads like you banged your head on your keyboard tbh. trying to give them an item on death? don't. do it on respawn. may need to wait a tick after the respawn event. dead players are in a funny state, where they're "online" but they don't technically exist because their entity is gone.

Did you find this page helpful?