NPC Update

This commit is contained in:
Christer Warén 2024-01-20 00:09:02 +02:00
parent cf9080a68c
commit 6a32584d11

View File

@ -5,12 +5,12 @@
# #
#-------------------------------------------------- #--------------------------------------------------
on npc click: on damage:
if player's world is "lobby": if attacker's world is "lobby":
if npc's name is "Robotti825": if victim is "Robotti825":
if player doesn't have the permission "group.jasen": if attacker doesn't have the permission "group.jasen":
message "&7[&r%npc's name%&7]&r Annoin sinulle jäsenroolin, muistathan käyttäytyä!" to player message "&7[&r%victim%&7]&r Annoin sinulle jäsenroolin, muistathan käyttäytyä!" to attacker
if player doesn't have the permission "group.aikainenjasen": if attacker doesn't have the permission "group.aikainenjasen":
make console execute command "/lp user %player's name% group add jasen" make console execute command "/lp user %attacker% group add jasen"
else: else:
message "&7[&r%npc's name%&7]&r Olet jo jäsen" to player message "&7[&r%victim%&7]&r Olet jo jäsen" to attacker