2020-11-07 15:40:04 +00:00
|
|
|
# --- NPC ---
|
|
|
|
on rightclick on entity:
|
|
|
|
if clicked entity is a citizen:
|
|
|
|
set {_npc} to npc from entity clicked entity
|
|
|
|
if name of npc {_npc} is "Robotti825":
|
2020-11-07 15:48:10 +00:00
|
|
|
if player doesn't have the permission "group.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"
|