Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on damage:
- if {clan::%victim%} is {clan::%attacker%}:
- cancel event
- command /clan [<text>] [<text>]:
- trigger:
- if arg-1 is set:
- if arg-1 is "create":
- if {inclan::%player%} is not set:
- if {clans::%arg-2%} is not set:
- send "&5&lVoidReborn &aClan %arg-2% Created"
- set {clans::%arg-2%} to true
- set {clan::%player%} to arg-2
- set {clanperm::%arg-2%::%player%} to true
- set {clanmember::%arg-2%::%player%} to player
- set {inclan::%player%} to true
- else:
- send "&5&lVoidReborn &cClan Already Exists"
- else:
- send "&5&lVoidReborn &cYour in a clan"
- if arg-1 is "delete":
- if {inclan::%player%} is true:
- if {clanmember::%{clan::%player%}%::%player%} is set:
- if {clanperm::%{clan::%player%}%::%player%} is true:
- send "&5&lVoidReborn &cClan %arg-2% Deleted"
- delete {clans::%{clan::%player%}}
- delete {inclan::%player%}
- loop {clanmember::%{clan::%player%}%::*}:
- delete {inclan::%loop-value%}
- delete {clan::%loop-value%}
- send "&5&lVoidReborn &cYou Left Your Clan" to loop-value
- delete {clanperm::%{clan::%player%}%::%player%}
- else:
- send "&5&lVoidReborn &cYour not in a clan"
- if arg-1 is "invite":
- if {inclan::%player%} is true:
- if {clanperm::%{clan::%player%}%::%player%} is true:
- send "&5&lVoidReborn &aYou Invited %arg-2% to the clan"
- set {p} to arg-2 parsed as player
- send "&5&lVoidReborn &a%player% invited you to clan %{clan::%player%}%" to {p}
- set {invite::%{p}%} to {clan::%player%}
- else:
- send "&5&lVoidReborn &cYou are not owner"
- else:
- send "&5&lVoidReborn &cYour not in a clan"
- if arg-1 is "accept":
- if {inclan::%player%} is not set:
- if {invite::%player%} is set:
- send "&5&lVoidReborn &aYou Joined Clan %{invite::%player%}%"
- set {clanmember::%{invite::%player%}%::%player%} to player
- set {inclan::%player%} to true
- set {clan::%player%} to {invite::%player%}
- else:
- send "&5&lVoidReborn &cYou have no invites"
- else:
- send "&5&lVoidReborn &cYour in a clan"
- if arg-1 is "leave":
- if {inclan::%player%} is set:
- if {clanperm::%{clan::%player%}%::%player%} is not true:
- send "&5&lVoidReborn &aYou Left Clan %{clan::%player%}%"
- delete {inclan::%player%}
- delete {clanmember::%{clan::%player%}%::%player%}
- delete {clan::%player%}
- else:
- send "&5&lVoidReborn &cUse /clan delete instead"
- else:
- send "&5&lVoidReborn &cYour not in a clan"
- if arg-1 is "list":
- if {inclan::%player%} is set:
- send "&c&lClan Members"
- loop {clanmember::%{clan::%player%}%::*}:
- send "&a%loop-value%"
- if arg-1 is "help":
- send "&d---&5Clan Help&d---"
- send "&7/clan create <name> &f- &aCreates a Clan"
- send "&7/clan delete &f- &aDeletes your clan"
- send "&7/clan invite <player> &f- &aInvites someone to your clan"
- send "&7/clan accept &f- &aAccept a Clan Invite"
- send "&7/clan leave &f- &aLeaves a Clan"
- send "&7/clan list &f- &aList players of clan"
- else:
- send "&5&lVoidReborn &cUse /clan help"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement