Jump to content

skript not working


EmptyRooms_

Recommended Posts

options:
	servername: Something
	itemname: Grenade

command /grenade <player>:
    permission: op
    permission message: &fUnknown command. Type "/help" for help.
    usage: &c/grenade <player>
    trigger:
        give arg-1 tnt named "{@itemname}"
        send "&aYou have &lSUCCESFULLY &aGiven %Arg-1% &ca {@itemname}"to player
		
on drop:
    if player's held item is tnt named "{@itemname}":
    wait 10 seconds
    create explosion with force 4 at targeted block

it says it has successfully reloaded  this skript but when i drop a random item instead of the selected item it explodes after 10 seconds

 

someone please fix this skript

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...