NPC Update

This commit is contained in:
Christer Warén 2024-01-15 04:27:02 +02:00
parent c934632a35
commit cf9080a68c

View File

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