Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- permission: clans.admin
- permission message: &8» &7You do not have permission to do this.
- prefix: &8» Clans &8«
- command /clan [<text>] [<text>]:
- trigger:
- if arg 1 is not set:
- if arg 2 is not set:
- send "{@prefix}"
- send ""
- send "&8» &e/clan &8» &7Brings up this help menu."
- send "&8» &e/clan create <name> &8» &7Creates a clan."
- send "&8» &e/clan leave &8» &7Leaves a clan."
- send "&8» &e/clan disband &8» &7Disbands your clan."
- if arg 1 is "list":
- send "%{clan::*}%"
- if arg 1 is "create":
- if arg 2 is set:
- loop {clan::*}:
- if {clan::*} contains arg 2:
- send "{@prefix} &7This clan already exists."
- else if {clan::*} contains player:
- send "{@prefix} &7You are already in a clan!"
- send "&7Leave your current clan to create a clan."
- else:
- set {clan::%player%} to arg 2
- set {clan::%arg 2%.leader} to player
- else:
- send "{@prefix} &7Enter a name for your clan."
- if arg 1 is "leave":
- if {clan::%player%.leader} is player:
- send "{@prefix} &7You are this clan's leader."
- send "&7Use &e/clan disband &7to remove your clan."
- else if {clan::%player%} is "":
- send "{@prefix} &7You do not have a clan."
- else:
- loop {clan::%player%}:
- send "{@prefix} &e%player% &7has left your clan!"
- delete {clan::%player%}
- send "{@prefix} &7You have left your clan."
- if arg 1 is "disband":
- if {clan::%player%.leader} is player:
- loop {clan::%player%.regular}:
- delete {clan::%player%}
- send "{@prefix} &7Your clan was disbanded!" to loop-player
- else:
- send "{@prefix} &7You are not the leader of a clan."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement