Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /clan [<text>] [<text>] [<offline player>]:
- aliases: c, cl
- trigger:
- if arg-1 isn't set:
- send "&fHeres A List Of Clan Command's."
- send ""
- send "/C Create (Clan Name) <Creates A Clan>"
- send "/C Leave (Clan Name) <Disband's The Clan If You Are Clan Owner>"
- send "/C Invite Player (Player Name) <Invites A Player Allowing Them To Join<Clan Owner Only>"
- send "/C Join (Clan Name) <Join A Clan With An Invitation>"
- send "/C Kick (Clan Player) <Kick's A Player From Your Clan <Clan Owner Only>"
- else:
- if arg-1 is "create":
- if arg-2 is set:
- if arg-3 isn't set:
- if {clanowner.%player%} is not 1:
- if {inclan.%player%} is not 1:
- broadcast "&b%player% &3Created The Clan &b%arg-2%"
- set {clangroup.%player%} to arg-2
- set {clanowner.%player%} to 1
- set {inclan.%player%} to 1
- else:
- send "&cYou Are Already In A Clan < /C Leave (Name) > To Create A New One"
- else:
- send "&cIncorrect Input"
- send ""
- send "&fTry Adding A Name Example /C Create (Name)"
- if arg-1 is "leave":
- if arg-2 is {clangroup.%player%}:
- if {clanowner.%player%} is 1:
- set {clanowner.%player%} to 0
- loop all players:
- if {clangroup.%loop-player%} is arg-2:
- set {clangroup.%loop-player%} to "NONE"
- set {inclan.%player%} to 0
- broadcast "&3The Clan &b%arg-2% &3Has Been Disbanded"
- else:
- if {clanowner.%player%} is 0:
- set {clangroup.%player%} to "NONE"
- set {inclan.%player%} to 0
- if arg-1 is "kick":
- if arg-3 is set:
- if the player is not "%player%":
- if {clanowner.%player%} is 1:
- set {clangroup.%arg-3%} to "NONE"
- set {clanowner.%arg-3%} to 0
- send "&3You Kicked &b%arg-3% &3From The Clan "
- else:
- send "&cYou Are Not The Clan Owner"
- if arg-1 is "invite":
- if {clanowner.%player%} is 1:
- if arg-2 is "player":
- send "&b%player% &3Invited You To Their Clan" to arg-3
- send "/C Join (Name)" to arg-3
- set {joinname.%arg-3%} to "%{clangroup.%player%}%"
- set {joinyesno.%arg-3%} to "yes"
- send "&3You Invited &b%arg-3%"
- else:
- send "&cYou Are Not The Clan Owner"
- if arg-1 is "join":
- if {inclan.%player%} is 0:
- if arg-2 is set:
- if {joinyesno.%player%} is "yes":
- set {clangroup.%player%} to "%{joinname.%player%}%"
- send "&3You Joined A Clan." to player
- set {joinname.%player%} to "123456789"
- else:
- send "&cYou Have No Inventations"
- on chat:
- cancel event
- broadcast "&b%{clangroup.%player%}% &7| &b%{rank.%player%}% &7| &b%player% &7| &f%message%"
- every 1 ticks:
- loop all players:
- if the loop-player is "AliTheBoss1":
- set {rank.%loop-player%} to "Developer"
- if {rank.%loop-player%} is not above 0:
- if the loop-player is not "AliTheBoss1":
- set {rank.%loop-player%} to "Default"
- first join:
- set {clangroup.%player%} to "NONE"
- on damage of player:
- if {clangroup.%victim%} is {clangroup.%attacker%}:
- cancel event
- send "&aYou May Not Hurt Your Clan Member"
- else:
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement