Advertisement
Cool_Colton

Minecraft War

Apr 28th, 2020
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.46 KB | None | 0 0
  1. command /DeclareWar <TeamName> <EnemyTeam>:
  2. permission: Team.Leaders # Makes it so only Co-Leader and Leader of a team can use
  3. aliases: /DW <TeamName> <EnemyTeam>, /Declarewar <TeamName> <EnemyTeam>, /declarewar <TeamName> <EnemyTeam>
  4. trigger:
  5. if <TeamName> = %player%.team.name:
  6. broadcast "<TeamName> has declared war on <EnemyTeam>."
  7.  
  8.  
  9. command /createteam <Team>:
  10. permission: Not.On.Team # Checks if player is on a team
  11. trigger:
  12. Broadcast "%player% has created a team named <Team>"
  13. set {%player%.team.name} to <Team>
  14. send console command "pex users %player% add Team.Leaders"
  15. send console command "pex users %player% add Team.Leader"
  16.  
  17. command /teaminvite <player>:
  18. permission: Team.Leaders
  19. trigger:
  20. if <player> doesn't have permission "Not.On.Team":
  21. send "You have been invited to %player%.team.name by %player%! To join use /teamjoin %player%.team.name"
  22. set {<player>.invited.team} to %player%.team.name
  23.  
  24. command /jointeam <team>:
  25. permission: Not.On.Team
  26. trigger:
  27. if %player%.invited.team = team:
  28. send "You have joined %player%.invited.team" to %player%
  29. set {%player%.team.name} to %player%.invited.team
  30. send console command "pex users %player% add Team.Member"
  31.  
  32. command /teampromote <user>:
  33. permission: Team.Leader
  34. trigger:
  35. if %player%.team.name = <user>.team.name:
  36. if <user> doesn't have permission "Team.Leaders":
  37. if <user> doesn't have permission "Team.Leader":
  38. send "You have promoted <user> to a Co-Leader" to %player%
  39. send console command "pex users <user> add Team.Leaders"
  40. if <user> does have permission "Team.Leader":
  41. send "You can't promote yourself, silly" to %player%
  42.  
  43. command /teamleave
  44. permission: Team.Member, Team.Leaders
  45. trigger:
  46. send "Are you sure you wish to leave this team? Send 'Yes' in the next 15 seconds to confirm" to %player%
  47. set {%player%.Wants.To.Leave} to true
  48. wait 15 seconds
  49. set {%player%.Wants.To.Leave} to false
  50.  
  51. on first join:
  52. send "Welcome to the server %player%!"
  53.  
  54. on chat:
  55. if %player%.Wants.To.Leave is true:
  56. if message is Yes:
  57. cancel event
  58. send "You have successfully left %player%.team.name
  59. set %player%.team.name to "No Team"
  60. send console command "pex users %player% add Not.On.Team
  61.  
  62. if %player% doesn't have permission "Not.On.Team":
  63. cancel event
  64. set {@prefix} to %player%.team.name
  65. message "{@prefix} %message%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement