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 name of clicked entity is "Robotti825":
|
||||||
if player doesn't have the permission "group.jasen":
|
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":
|
if player doesn't have the permission "group.aikainenjasen":
|
||||||
make console execute command "/lp user %player% group add jasen"
|
make console execute command "/lp user %player% group add jasen"
|
||||||
else:
|
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
|
Loading…
Reference in New Issue
Block a user