NPC Update
This commit is contained in:
parent
7d6d2d56a7
commit
3b8237c446
@ -1,10 +1,11 @@
|
|||||||
# --- NPC ---
|
# --- NPC ---
|
||||||
on rightclick on entity:
|
on rightclick on entity:
|
||||||
if clicked entity is a citizen:
|
if clicked entity is a citizen:
|
||||||
if name of npc is "Robotti825":
|
if player's world is "lobby":
|
||||||
if player doesn't have the permission "group.jasen":
|
if name of clicked entity is "Robotti825":
|
||||||
message "&7[&2Robotti825&7]&r Annoin sinulle jäsenroolin, muistathan käyttäytyä!"
|
if player doesn't have the permission "group.jasen":
|
||||||
if player doesn't have the permission "group.aikainenjasen":
|
message "&7[&r%name of clicked entity%&7]&r Annoin sinulle jäsenroolin, muistathan käyttäytyä!" to player
|
||||||
make console execute command "/lp user %player% group add jasen"
|
if player doesn't have the permission "group.aikainenjasen":
|
||||||
else:
|
make console execute command "/lp user %player% group add jasen"
|
||||||
message "&7[&2Robotti825&7]&r Olet jo jäsen"
|
else:
|
||||||
|
message "&7[&r%name of clicked entity%&7]&r Olet jo jäsen" to player
|
Loading…
Reference in New Issue
Block a user