NPC part 2

This commit is contained in:
Christer Warén 2020-11-07 17:48:10 +02:00
parent 928e271e57
commit c7fbfe390e

View File

@ -3,5 +3,9 @@ on rightclick on entity:
if clicked entity is a citizen: if clicked entity is a citizen:
set {_npc} to npc from entity clicked entity set {_npc} to npc from entity clicked entity
if name of npc {_npc} is "Robotti825": if name of npc {_npc} is "Robotti825":
if player doesn't have the permission "group.aikainenjasen": if player doesn't have the permission "group.jasen":
make console execute command "/lp user %player% group add jasen" message "&7[&2Robotti825&7]&r Annoin sinulle jäsenroolin, muistathan käyttäytyä!"
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"