Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Command /clan [<text>] [<text>]:
- trigger:
- argument 1 is "create":
- set {clan.%player%} to argument 2
- set {clanowner.%argument 2%} to argument 2
- set {ownsclan.%player%} to argument 2
- send "&aYou created clan '%argument 2%.'
- else:
- argument 1 is "join":
- set {clan.%player%} to argument 2
- send "&aYou joined clan '%argument 2%."
- else:
- argument 1 is "leave":
- {clan.%player%} is {ownsclan.%player%}:
- send "&aYou cannot leave your own clan, instead, use /clan disband"
- else:
- set {clan.%player%} to "LFC"
- send "&aYou left the clan."
- else:
- argument 1 is "disband":
- set {ownsclan.%player%} to ""
- set {clan.%player%} to "LFC"
- send "&aYou disbanded your clan. ):"
- else:
- send "&3&m----------------"
- send "&2/clan join <clan>"
- send "&2/clan create <clan>"
- send "&2/clan leave"
- send "&2/clan disband"
- send "&3&m----------------"
- on chat:
- cancel event
- broadcast "%{clan.%player%}% %player% &f%message%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement