Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.52 KB | None | 0 0
  1. Command /clan [<text>] [<text>]:
  2. trigger:
  3. argument 1 is "create":
  4. {clan.%player%} is "":
  5. set {clan.%player%} to argument 2
  6. send "&aYou created clan '%argument 2%'!"
  7. set {clanowner.%argument 2%} to player
  8. set {clanopen.%{clan.%player%}%} to false
  9. else:
  10. send "&cYou must leave/disband your current clan first!"
  11.  
  12. else:
  13. argument 1 is "disband":
  14. {clanowner.%{clan.%player%}%} is player:
  15. send "&aYou disbanded your clan."
  16. set {clan.%player%} to ""
  17. loop all players:
  18. {clan.%loop-player%} is {clan.%player%}:
  19. set {clan.%loop-player%} to ""
  20. send "&cThe clan you were in was disbanded :L" to loop-player
  21. else:
  22. send "&cYou need to be the owner of your clan!"
  23. else:
  24. argument 1 is "open":
  25. loop all players:
  26. {clan.%loop-player%} is {clan.%player%}
  27. send "&aYour clan was opened by your leader!"
  28. set {clanopen.%{clan.%player%}%} to true
  29. else:
  30. argument 1 is "close":
  31. loop all players:
  32. {clan.%loop-player%} is {clan.%player%}
  33. send "&cYour clan was closed by your leader!"
  34. set {clanopen.%{clan.%player%}%} to false
  35. else:
  36. argument 1 is "join":
  37. {clanopen.%argument 2%} is true:
  38. set {clan.%player%} to argument 2
  39. loop all players:
  40. {clan.%loop-player%} is {clan.%player%}
  41. send "&a%player% joined the clan." to loop-player
  42. else:
  43. {invites.%player%::*} contains argument 2:
  44. set {clan.%player%} to argument 2
  45. loop all players:
  46. {clan.%loop-player%} is {clan.%player%}
  47. send "&a%player% joined the clan." to loop-player
  48. else:
  49. send "&aYou have sent a request to the clan's leader to join!"
  50. send "&e%player% wants to join your clan. Type /clan accept <player> to accept, /clan decline <player> to decline!" to {clanowner.%argument 2%}
  51. else:
  52. argument 1 is "leave":
  53. {clanowner.%{clan.%player%}%} is not player:
  54. send "&cYou left the clan."
  55. set {clan.%player%} to ""
  56. else:
  57. argument 1 is "invite":
  58. {clanowner.%{clan.%player%}%} is player:
  59. send "&e%player% invited you to join%{clan.%player%}%" to argument 2
  60. send "&eType /clan join %{clan.%player%}% at any time to join!" to argument 2
  61. add "%{clan.%player%}%" to {invites.%argument 2%::*}
  62. else:
  63. argument 1 is "decline":
  64. {clanowner.%{clan.%player%}%} is player
  65. send "&cYou were declined from the clan. Sorry!" to argument 2
  66. else:
  67. argument 1 is "accept":
  68. {clanowner.%{clan.%player%}%} is player
  69. send "&aYour request was accepted." to argument 2
  70. set {clan.%arg-2%} to {clan.%player%}
  71. loop all players:
  72. {clan.%loop-player%} is {clan.%argument 2%}
  73. send "&a%argument 2% joined the clan." to loop-player
  74. else:
  75. argument 1 is "help":
  76. send "&3Command not recognized. Here's a list!"
  77. send "&a/clan join <clan name>"
  78. send "&b/clan create <clan name>"
  79. send "&b/clan disband"
  80. send "&b/clan invite <player>"
  81. send "&b/clan accept <player>"
  82. send "&b/clan decline <player>"
  83. send "&b/clan open"
  84. send "&b/clan close"
  85. send "&b/clan leave"
  86. send "&b/clan help"
  87. send "&3Want a &bnew&3 command? Contact &bWorldHosting&3!"
  88. else:
  89. send "&3Command not recognized. Here's a list!"
  90. send "&a/clan join <clan name>"
  91. send "&b/clan create <clan name>"
  92. send "&b/clan disband"
  93. send "&b/clan invite <player>"
  94. send "&b/clan accept <player>"
  95. send "&b/clan decline <player>"
  96. send "&b/clan open"
  97. send "&b/clan close"
  98. send "&b/clan leave"
  99. send "&b/clan help"
  100. send "&3Want a &bnew&3 command? Contact &bWorldHosting&3!"
  101. Command /statistic [<text>]:
  102. trigger:
  103. arg-1 is not set:
  104. send "&3%{clan.%player%}%'s stats:"
  105. loop all players:
  106. {clan.%loop-player%} is {clan.%player%}:
  107. add 1 to {players.%{clan.%player%}%}
  108. send "&3%{players.%{clan.%player%}%}% players"
  109. on chat:
  110. {clan.%player%} is "":
  111. set the player's display name to "&7%player% &7[&aLFC&7]"
  112. else:
  113. set the player's display name to "&7%player% &7[%{clan.%player%}%]"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement