From 3b8237c4463edfcaa42e8b651330ef9b8925fb17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Sat, 7 Nov 2020 19:07:42 +0200 Subject: [PATCH] NPC Update --- mirricraft-npc.sk | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/mirricraft-npc.sk b/mirricraft-npc.sk index d386690..80832ed 100644 --- a/mirricraft-npc.sk +++ b/mirricraft-npc.sk @@ -1,10 +1,11 @@ # --- NPC --- on rightclick on entity: if clicked entity is a citizen: - if name of npc is "Robotti825": - 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" \ No newline at end of file + if player's world is "lobby": + if name of clicked entity is "Robotti825": + if player doesn't have the permission "group.jasen": + 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[&r%name of clicked entity%&7]&r Olet jo jäsen" to player \ No newline at end of file