Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.53 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. add "%{clan.%player%}%" to {invites.%argument 2%::*}
  61. else:
  62. argument 1 is "decline":
  63. {clanowner.%{clan.%player%}%} is player
  64. send "&cYou were declined from the clan. Sorry!" to argument 2
  65. else:
  66. argument 1 is "accept":
  67. {clanowner.%{clan.%player%}%} is player
  68. send "&aYour request was accepted." to argument 2
  69. set {clan.%arg-2%} to {clan.%player%}
  70. loop all players:
  71. {clan.%loop-player%} is {clan.%argument 2%}
  72. send "&a%argument 2% joined the clan." to loop-player
  73. else:
  74. argument 1 is "help":
  75. send "&3Command not recognized. Here's a list!"
  76. send "&a/clan join <clan name>"
  77. send "&b/clan create <clan name>"
  78. send "&b/clan disband"
  79. send "&b/clan invite <player>"
  80. send "&b/clan accept <player>"
  81. send "&b/clan decline <player>"
  82. send "&b/clan open"
  83. send "&b/clan close"
  84. send "&b/clan leave"
  85. send "&b/clan help"
  86. send "&3Want a &bnew&3 command? Contact &bWorldHosting&3!"
  87. else:
  88. send "&3Command not recognized. Here's a list!"
  89. send "&a/clan join <clan name>"
  90. send "&b/clan create <clan name>"
  91. send "&b/clan disband"
  92. send "&b/clan invite <player>"
  93. send "&b/clan accept <player>"
  94. send "&b/clan decline <player>"
  95. send "&b/clan open"
  96. send "&b/clan close"
  97. send "&b/clan leave"
  98. send "&b/clan help"
  99. send "&3Want a &bnew&3 command? Contact &bWorldHosting&3!"
  100. Command /statistic [<text>]:
  101. trigger:
  102. arg-1 is not set:
  103. send "&3%{clan.%player%}%'s stats:"
  104. loop all players:
  105. {clan.%loop-player%} is {clan.%player%}:
  106. add 1 to {players.%{clan.%player%}%}
  107. send "&3%{players.%{clan.%player%}%}% players"
  108. on chat:
  109. {clan.%player%} is "":
  110. set the player's display name to "&7%player% &7[&aLFC&7]"
  111. else:
  112. set the player's display name to "&7%player% &7[%{clan.%player%}%]"
  113. Command /fix:
  114. permission: *
  115. trigger:
  116. loop all players:
  117. set {clan.%loop-player%} to ""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement