Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /DeclareWar <TeamName> <EnemyTeam>:
- permission: Team.Leaders # Makes it so only Co-Leader and Leader of a team can use
- aliases: /DW <TeamName> <EnemyTeam>, /Declarewar <TeamName> <EnemyTeam>, /declarewar <TeamName> <EnemyTeam>
- trigger:
- if <TeamName> = %player%.team.name:
- broadcast "<TeamName> has declared war on <EnemyTeam>."
- command /createteam <Team>:
- permission: Not.On.Team # Checks if player is on a team
- trigger:
- Broadcast "%player% has created a team named <Team>"
- set {%player%.team.name} to <Team>
- send console command "pex users %player% add Team.Leaders"
- send console command "pex users %player% add Team.Leader"
- command /teaminvite <player>:
- permission: Team.Leaders
- trigger:
- if <player> doesn't have permission "Not.On.Team":
- send "You have been invited to %player%.team.name by %player%! To join use /teamjoin %player%.team.name"
- set {<player>.invited.team} to %player%.team.name
- command /jointeam <team>:
- permission: Not.On.Team
- trigger:
- if %player%.invited.team = team:
- send "You have joined %player%.invited.team" to %player%
- set {%player%.team.name} to %player%.invited.team
- send console command "pex users %player% add Team.Member"
- command /teampromote <user>:
- permission: Team.Leader
- trigger:
- if %player%.team.name = <user>.team.name:
- if <user> doesn't have permission "Team.Leaders":
- if <user> doesn't have permission "Team.Leader":
- send "You have promoted <user> to a Co-Leader" to %player%
- send console command "pex users <user> add Team.Leaders"
- if <user> does have permission "Team.Leader":
- send "You can't promote yourself, silly" to %player%
- command /teamleave
- permission: Team.Member, Team.Leaders
- trigger:
- send "Are you sure you wish to leave this team? Send 'Yes' in the next 15 seconds to confirm" to %player%
- set {%player%.Wants.To.Leave} to true
- wait 15 seconds
- set {%player%.Wants.To.Leave} to false
- on first join:
- send "Welcome to the server %player%!"
- on chat:
- if %player%.Wants.To.Leave is true:
- if message is Yes:
- cancel event
- send "You have successfully left %player%.team.name
- set %player%.team.name to "No Team"
- send console command "pex users %player% add Not.On.Team
- if %player% doesn't have permission "Not.On.Team":
- cancel event
- set {@prefix} to %player%.team.name
- message "{@prefix} %message%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement