Hello, i want to make a Kingdom plugin, but i have an problem:
When i make a Kingdom, the Kingdom binds to the player and it isn't rlly a group. Its more a prefix for one player. How do i make it so it is a real Kingdom so they can promote, kick and set spawns for a kingdom?
code_language.skript:
command /kingdom [<text>] [<offlineplayer>]:
trigger:
if arg-1 is "create":
if arg-2 is set:
if {Kingdom.Name.%uuid of player%} is not set:
set {Kingdom.Name.%uuid of player%} to "&8[&6%arg-2%&8]"
set {Kingdom.King.%uuid of player%} to "&8[&6K&8]"
broadcast "&7[&cKingdom&7] &9The kingdom &6%arg-2% &9has been born!"
else:
send "&7[&cKingdom&7] &9You are already in a Kingdom!"
else:
send "&7[&cKingdom&7] &9Dont forget to choose a name!"
on chat:
cancel event
if {Kingdom.Name.%uuid of player%} is set:
if {Kingdom.King.%uuid of player%} is set:
broadcast "%{Kingdom.King.%uuid of player%}%&8[&6%{Kingdom.Name.%player%}%&8][&f%player%&8]&f: &7%message%"
else:
broadcast "&8[&6%{Kingdom.Name.%uuid of player%}%&8][&f%player%&8]&f: &7%message%"
else:
broadcast "&8[&aKingdom-Loos&8][&f%player%&8]&f: &7%message%"
Last edited: