NPC Update

This commit is contained in:
Christer Warén 2020-11-07 19:07:42 +02:00
parent 7d6d2d56a7
commit 3b8237c446

View File

@ -1,10 +1,11 @@
# --- NPC ---
on rightclick on entity:
if clicked entity is a citizen:
if name of npc is "Robotti825":
if player's world is "lobby":
if name of clicked entity is "Robotti825":
if player doesn't have the permission "group.jasen":
message "&7[&2Robotti825&7]&r Annoin sinulle jäsenroolin, muistathan käyttäytyä!"
message "&7[&r%name of clicked entity%&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% group add jasen"
else:
message "&7[&2Robotti825&7]&r Olet jo jäsen"
message "&7[&r%name of clicked entity%&7]&r Olet jo jäsen" to player