2020-11-07 15:40:04 +00:00
|
|
|
# --- NPC ---
|
2020-11-08 13:49:53 +00:00
|
|
|
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"
|
|
|
|
|
2020-11-07 15:40:04 +00:00
|
|
|
on rightclick on entity:
|
|
|
|
if clicked entity is a citizen:
|
2020-11-07 17:07:42 +00:00
|
|
|
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
|