mirricraft-skript/mirricraft-npc.sk
Christer Warén 90094a0f66 NPC Update
2020-11-08 15:49:53 +02:00

16 lines
824 B
Plaintext

# --- NPC ---
on script load:
set {citizens} to yml value "PluginHooks.Npc" of file "plugins/Skellett/config.yml"
if {citizens} is false:
disable script "mirricraft-npc.sk"
on rightclick on entity:
if clicked entity is a citizen:
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