ilyLuna Posted July 1 Share Posted July 1 CLANS SKRIPT ver 1.00 Spoiler options: clan: &6&lCLANS &8| command /clan [<text>] [<text>]: trigger: if arg-1 isn't set: message "{@clan} &fUse&6 /clan help&r for &6information&r." if arg-1 is "create": if {clan::%uuid of player%} isn't set: if {Clanname::*} doesn't contain arg-2: if length of arg-2 <= 10: if arg-2 is alphanumeric: if arg-2 isn't a number: set {clan::%uuid of player%} to arg-2 set {clanowner::%arg-2%} to player set {clanname::%arg-2%} to arg-2 add player to {%arg-2%::members::*} broadcast "{@clan} &6%player% &Fhas created &6%arg-2%" else: message "{@clan} &RYou &6can't use numbers&r on &6clan names&r." else: message "{@clan}&r Invalid &6Clan Name" else: message "{@clan} &RClan name is &6could only be 1-10 letters &r." else: message "{@clan} &rThis &6clan name&r is &6taken&r." else: message "{@clan}&R You are &6already&r in a &6clan&r." if arg-1 is "disband": if {clan::%uuid of player%} is set: if {clanowner::%{clan::%uuid of player%}%} is player: broadcast "{@clan} &6%player% &Fhas disbanded &6%{Clan::%uuid of player%}%" remove {clan::%uuid of player%} from {clanname::*} delete {clanowner::%{clan::%uuid of player%}%} delete {%{Clan::%uuid of player%}%::members::*} loop {%{Clan::%uuid of player%}%::members::*}: set {_player} to "%loop-value%" parsed as offline player if {clanowner::%{clan::%uuid of player%}%} does not contain {_player}: delete {clan::%uuid of {_player}%} remove {_player} from {%{Clan::%uuid of player%}%::members::*} remove player from {%{Clan::%uuid of player%}%::members::*} delete {clan::%uuid of player%} else: message "{@clan} &rYou aren't the &6clan owner&R." if arg-1 is "Info": if arg-2 is set: if {clanname::*} contains "%arg-2%": message "&6&lCLANS &8| &8(&6%arg-2%&8)" Message "&R" message "&8● &6Clan Owner: &r%{clanowner::%arg-2%}%" set {var} to 0 delete {clanmemberstest::*} loop {%arg-2%::members::*}: add 1 to {var} add "%loop-value%" parsed as offline player to {clanmemberstest::*} message "&8● &6Clan Members &8(&6%{var}%&8)&6: &R%{clanmemberstest::*}%" else: message "{@clan} &rThis clan doesn't &6exist&r." else: if {clan::%uuid of player%} is set: message "&6&lCLANS &8| &8(&6%{clan::%uuid of player%}%&8)" Message "&R" message "&8● &6Clan Owner: &r%{clanowner::%{clan::%uuid of player%}%}%" set {var} to 0 delete {clanmemberstest::*} loop {%{Clan::%uuid of player%}%::members::*}: add 1 to {var} add "%loop-value%" parsed as offline player to {clanmemberstest::*} message "&8● &6Clan Members &8(&6%{var}%&8)&6: &R%{clanmemberstest::*}%" else: message "{@clan} &rYou aren't in a &6clan&r use &6/clan info <name>&r if you want to check other &6clans&r." if arg-1 is "help": message "&6&lCLANS &8| &RClan skript made by &6KayCle777 &8| &6v1.00" Message "&R" message "&8● &6/clan create &8| &rCreate a &6clan" message "&8● &6/clan disband &8| &rDisband your &6clan" message "&8● &6/clan kick &8| &rKick someone from your &6clan" message "&8● &6/clan leave &8| &rLeave your &6clan" message "&8● &6/clan join &8| &rJoin a &6clan" message "&8● &6/clan info <name> &8| &rCheck a &6clan's info" message "&8● &6/clan chat &8| &rToggle &6clan chat" message "&r" if arg-1 is "leave": if {clan::%uuid of player%} is set: if {clanowner::%{clan::%uuid of player%}%} isn't player: remove player from {%{clan::%uuid of player%}%::members::*} loop {%{clan::%uuid of player%}%::members::*}: set {_player} to "%loop-value%" parsed as player message "{@clan} &r%player% has left &6%{clan::%uuid of player%}%" to {_player} message "{@clan} &rYou have left &6%{clan::%uuid of player%}%" to player delete {clan::%uuid of player%} else: message "{@clan} &RYou are the &6owner&r of the &6clan&r, use &6/clan disband&r if you wan't to &6leave&r." else: message "{@clan}&R You are &6aren't&r in a &6clan&r." if arg-1 is "chat": if {clan::%uuid of player%} is set: if {Clanchat::%uuid of player%} is not set: set {clanchat::%uuid of player%} to true message "{@clan}&r You have &6toggled &Rclan chat&R." else: delete {clanchat::%uuid of player%} message "{@clan}&r You have &6disabled &Rclan chat&R." else: message "{@clan}&R You are &6aren't&r in a &6clan&r." if arg-1 is "invite": if {clan::%uuid of player%} is set: if {clanowner::%{clan::%uuid of player%}%} is player: if {clan::%uuid of arg-2%} isn't set: if {%{clan::%uuid of player%}%::members::*} doesn't contain "%arg-2%": if {claninvites::%uuid of arg-2%} doesn't contain {clan::%uuid of player%}: set {_player2} to player set {_player} to "%arg-2%" parsed as player loop all players: if loop-player is "%{_player}%": add {clan::%uuid of {_player2}%} to {claninvite::%uuid of loop-player%::*} message "{@clan} &rYou have &6been invited&r to &6join %{clan::%uuid of {_player2}%}%" to loop-player if {_player} isn't set: message "{@clan} &rThe person you &6invited&r is either &6offline&r or doesn't &6exist&r." else: message "{@clan} &rYou invited &6%{_player}%&r to your &6clan&r." else: message "{@clan} &rYou already &6invited %arg-2%" else: message "{@clan} &rThis player is a &6clan member&r." else: message "{@clan} &rThis player is &6already&r in a &6clan&R." else: message "{@clan} &rYou aren't the &6clan owner&r." else: message "{@clan} &rYou aren't in a &6clan&r." if arg-1 is "join": if {clan::%uuid of player%} is not set: if arg-2 is set: if {clanname::*} contains "%arg-2%": if {claninvite::%uuid of player%::*} contains "%arg-2%": add player to {%arg-2%::members::*} set {clan::%uuid of player%} to arg-2 remove arg-2 from {claninvite::%uuid of player%::*} message "{@clan} &R%player% &RHas joined your &6clan" to {%arg-2%::members::*} else: message "{@clan} &rYou're not &6invited &rto this &6clan&r." else: message "{@clan} &rThis &6dclan&r does not &6exist&r." else: message "{@clan} &rInvalid Argument, &6use /clan join <name>" else: message "{@clan} &rYou're &6already&r in a &6clan&r." if arg-1 is "kick": if arg-2 is set: if {clan::%uuid of player%} is set: if {clanowner::%{Clan::%uuid of player%}%} is player: if {%{clan::%uuid of player%}%::members::*} contains "%arg-2%": if "%arg-2%" isn't player: delete {clan::%uuid of arg-2%} remove arg-2 from {%{clan::%uuid of player%}%::members::*} message "{@clan} &6%Player% &Rhas kicked &6%arg-2%&r from the &6clan&r" to {%{clan::%uuid of player%}%::members::*} message "{@clan} &RYou have &6kicked %arg-2% &rfrom your &6clan&r!" to player else: message "{@clan} &FYou can't kick &6yourself&r." else: message "{@clan} &FThis player isn't in your &6clan&r." else: message "{@clan} &FYou aren't the &6clan owner&r." else: message "{@clan} &FYou aren't in a &6clan&r." else: message "{@clan} &FInvalid Argument! &6use /clan kick <name>&r!" Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now