Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Command /clan [<text>] [<text>]:
- trigger:
- argument 1 is "create":
- {clan.%player%} is "":
- set {clan.%player%} to argument 2
- send "&aYou created clan '%argument 2%'!"
- set {clanowner.%argument 2%} to player
- set {clanopen.%{clan.%player%}%} to false
- else:
- send "&cYou must leave/disband your current clan first!"
- else:
- argument 1 is "disband":
- {clanowner.%{clan.%player%}%} is player:
- send "&aYou disbanded your clan."
- set {clan.%player%} to ""
- loop all players:
- {clan.%loop-player%} is {clan.%player%}:
- set {clan.%loop-player%} to ""
- send "&cThe clan you were in was disbanded :L" to loop-player
- else:
- send "&cYou need to be the owner of your clan!"
- else:
- argument 1 is "open":
- loop all players:
- {clan.%loop-player%} is {clan.%player%}
- send "&aYour clan was opened by your leader!"
- set {clanopen.%{clan.%player%}%} to true
- else:
- argument 1 is "close":
- loop all players:
- {clan.%loop-player%} is {clan.%player%}
- send "&cYour clan was closed by your leader!"
- set {clanopen.%{clan.%player%}%} to false
- else:
- argument 1 is "join":
- {clanopen.%argument 2%} is true:
- set {clan.%player%} to argument 2
- loop all players:
- {clan.%loop-player%} is {clan.%player%}
- send "&a%player% joined the clan." to loop-player
- else:
- {invites.%player%::*} contains argument 2:
- set {clan.%player%} to argument 2
- loop all players:
- {clan.%loop-player%} is {clan.%player%}
- send "&a%player% joined the clan." to loop-player
- else:
- send "&aYou have sent a request to the clan's leader to join!"
- send "&e%player% wants to join your clan. Type /clan accept <player> to accept, /clan decline <player> to decline!" to {clanowner.%argument 2%}
- else:
- argument 1 is "leave":
- {clanowner.%{clan.%player%}%} is not player:
- send "&cYou left the clan."
- set {clan.%player%} to ""
- else:
- argument 1 is "invite":
- {clanowner.%{clan.%player%}%} is player:
- send "&e%player% invited you to join%{clan.%player%}%" to argument 2
- send "&eType /clan join %{clan.%player%}% at any time to join!" to argument 2
- add "%{clan.%player%}%" to {invites.%argument 2%::*}
- else:
- argument 1 is "decline":
- {clanowner.%{clan.%player%}%} is player
- send "&cYou were declined from the clan. Sorry!" to argument 2
- else:
- argument 1 is "accept":
- {clanowner.%{clan.%player%}%} is player
- send "&aYour request was accepted." to argument 2
- set {clan.%arg-2%} to {clan.%player%}
- loop all players:
- {clan.%loop-player%} is {clan.%argument 2%}
- send "&a%argument 2% joined the clan." to loop-player
- else:
- argument 1 is "help":
- send "&3Command not recognized. Here's a list!"
- send "&a/clan join <clan name>"
- send "&b/clan create <clan name>"
- send "&b/clan disband"
- send "&b/clan invite <player>"
- send "&b/clan accept <player>"
- send "&b/clan decline <player>"
- send "&b/clan open"
- send "&b/clan close"
- send "&b/clan leave"
- send "&b/clan help"
- send "&3Want a &bnew&3 command? Contact &bWorldHosting&3!"
- else:
- send "&3Command not recognized. Here's a list!"
- send "&a/clan join <clan name>"
- send "&b/clan create <clan name>"
- send "&b/clan disband"
- send "&b/clan invite <player>"
- send "&b/clan accept <player>"
- send "&b/clan decline <player>"
- send "&b/clan open"
- send "&b/clan close"
- send "&b/clan leave"
- send "&b/clan help"
- send "&3Want a &bnew&3 command? Contact &bWorldHosting&3!"
- Command /statistic [<text>]:
- trigger:
- arg-1 is not set:
- send "&3%{clan.%player%}%'s stats:"
- loop all players:
- {clan.%loop-player%} is {clan.%player%}:
- add 1 to {players.%{clan.%player%}%}
- send "&3%{players.%{clan.%player%}%}% players"
- on chat:
- {clan.%player%} is "":
- set the player's display name to "&7%player% &7[&aLFC&7]"
- else:
- set the player's display name to "&7%player% &7[%{clan.%player%}%]"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement