Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.88 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. else:
  12. argument 1 is "disband":
  13. {clanowner.%{clan.%player%}%} is player:
  14. send "&aYou disbanded your clan."
  15. set {clan.%player%} to ""
  16. loop all players:
  17. {clan.%loop-player%} is {clan.%player%}:
  18. set {clan.%loop-player%} to ""
  19. send "&cThe clan you were in was disbanded :L" to loop-player
  20. else:
  21. send "&cYou need to be the owner of your clan!"
  22. else:
  23. argument 1 is "open":
  24. loop all players:
  25. {clan.%loop-player%} is {clan.%player%}
  26. send "&aYour clan was opened by your leader!"
  27. set {clanopen.%{clan.%player%}%} to true
  28. else:
  29. argument 1 is "close":
  30. loop all players:
  31. {clan.%loop-player%} is {clan.%player%}
  32. send "&cYour clan was closed by your leader!"
  33. set {clanopen.%{clan.%player%}%} to false
  34. else:
  35. argument 1 is "join":
  36. {clanopen.%argument 2%} is true:
  37. set {clan.%player%} to argument 2
  38. loop all players:
  39. {clan.%loop-player%} is {clan.%player%}
  40. send "&a%player% joined the clan." to loop-player
  41. else:
  42. {invites.%player%::*} contains argument 2:
  43. set {clan.%player%} to argument 2
  44. loop all players:
  45. {clan.%loop-player%} is {clan.%player%}
  46. send "&a%player% joined the clan." to loop-player
  47. else:
  48. send "&aYou have sent a request to the clan's leader to join!"
  49. send "&e%player% wants to join your clan. Type /clan accept <player> to accept, /clan decline <player> to decline!" to {clanowner.%argument 2%}
  50. else:
  51. argument 1 is "leave":
  52. {clanowner.%{clan.%player%}%} is not player:
  53. send "&cYou left the clan."
  54. set {clan.%player%} to ""
  55. else:
  56. argument 1 is "invite":
  57. {clanowner.%{clan.%player%}%} is player:
  58. send "&e%player% invited you to join %{clan.%player%}%" to argument 2
  59. send "&eType /clan join %{clan.%player%}% at any time to join!" to argument 2
  60. send "&3%argument 2% was invited!"
  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. send "&3Clan owner: %{clanowner.%{clan.%player%}%}%"
  110. on chat:
  111. {clan.%player%} is "":
  112. set the player's display name to "&7%player% &7[&aLFC&7]"
  113. else:
  114. {clanowner.%{clan.%player%}%} is player:
  115. set the player's display name to "&7%player% &7[%{clan.%player%}% &8(CLAN MASTER)&7]"
  116. else:
  117. set the player's display name to "&7%player% &7[%{clan.%player%}%]"
  118. Command /fix:
  119. permission: *
  120. trigger:
  121. loop all players:
  122. set {clan.%loop-player%} to ""
  123. on first join:
  124. set {clan.%player%} to ""
  125. Command /invites:
  126. trigger:
  127. send "&3{invites.%player%::*}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement