Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on damage:
- if victim is in {clanmemebers::%{clan::%attacker%}%::*}:
- cancel event
- command /clan [<text>] [<text>]:
- trigger:
- if arg-1 is set:
- if arg-1 is "create":
- if {clans::%arg-2%} is not set:
- send "&5&lOn The Void &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
- if arg-1 is "delete":
- if {inclan::%player%} is true:
- if {clanmember::%arg-2%::%player%} is set:
- if {clanperm::%arg-2%::%player%} is true:
- send "&5&lVoidReborn &cClan %arg-2% Deleted"
- delete {clans::%arg-2%}
- delete {inclan::%player%}
- loop {clanmember::%arg-2%::*}:
- delete {inclan::%loop-value%}
- send "&5&lVoidReborn &cYou Left Your Clan" to loop-value
- delete {clanperm::%arg-2%::%player%}
- 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%}
- 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%}
- if arg-1 is "leave":
- if {inclan::%player%} 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%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement