Hello guys,
I am making a deathnote in minecraft, but i ran into a problem.
This is the code i use. Imagine there is a player online named Jeb, and i do: /deathnote b, then jeb gets killed. But thats not what i want.
I want that only if i type /deathnote Jeb that it will kill him.
Can you guys help me?
I am making a deathnote in minecraft, but i ran into a problem.
code_language.skript:
command /deathnote <player>:
trigger:
if arg-1 is set:
if player is holding a enchanted book named "&cDeathnote":
kill arg-1
remove 1 enchanted book named "&cDeathnote" from the player
broadcast "&c&l%player% killed %arg-1%!"
else:
send "&aYou are not holding a deathnote!"
This is the code i use. Imagine there is a player online named Jeb, and i do: /deathnote b, then jeb gets killed. But thats not what i want.
I want that only if i type /deathnote Jeb that it will kill him.
Can you guys help me?