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::clan.*}%"
- if arg 1 is "create":
- if arg 2 is set:
- loop {clan::clan.*}:
- if {clan::clan.*} contains arg 2:
- send "{@prefix} &7This clan already exists."
- else if {clan::clan.*} contains player:
- send "{@prefix} &7You are already in a clan!"
- send "&7Leave your current clan to create a clan."
- else:
- set {clan::clan.%player%} to arg 2
- set {clan::clan.%arg 2%.leader} to player
- else:
- send "{@prefix} &7Enter a name for your clan."
- if arg 1 is "leave":
- if {clan::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::clan.%player%} is "":
- send "{@prefix} &7You do not have a clan."
- else:
- loop {clan::clan.%player%}:
- send "{@prefix} &e%player% &7has left your clan!"
- delete {clan::clan.%player%}
- send "{@prefix} &7You have left your clan."
- if arg 1 is "disband":
- if {clan::clan.%player%.leader} is player:
- loop {clan::clan.%player%.regular}:
- delete {clan::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