Advertisement
Guest1221

Untitled

Jan 23rd, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.72 KB | None | 0 0
  1. options:
  2.     permission: clans.admin
  3.     permission message: &8» &7You do not have permission to do this.
  4.     prefix: &8» Clans &8«
  5.  
  6. command /clan [<text>] [<text>]:
  7. trigger:
  8. if arg 1 is not set:
  9. if arg 2 is not set:
  10. send "{@prefix}"
  11. send ""
  12. send "&8» &e/clan &8» &7Brings up this help menu."
  13. send "&8» &e/clan create <name> &8» &7Creates a clan."
  14. send "&8» &e/clan leave &8» &7Leaves a clan."
  15. send "&8» &e/clan disband &8» &7Disbands your clan."
  16.  
  17. if arg 1 is "list":
  18. send "%{clan::*}%"
  19.  
  20. if arg 1 is "create":
  21. if arg 2 is set:
  22. loop {clan::*}:
  23. if {clan::*} contains arg 2:
  24. send "{@prefix} &7This clan already exists."
  25. else if {clan::*} contains player:
  26. send "{@prefix} &7You are already in a clan!"
  27. send "&7Leave your current clan to create a clan."
  28. else:
  29. set {clan::%player%} to arg 2
  30. set {clan::%arg 2%.leader} to player
  31. else:
  32. send "{@prefix} &7Enter a name for your clan."
  33.  
  34. if arg 1 is "leave":
  35. if {clan::%player%.leader} is player:
  36. send "{@prefix} &7You are this clan's leader."
  37. send "&7Use &e/clan disband &7to remove your clan."
  38. else if {clan::%player%} is "":
  39. send "{@prefix} &7You do not have a clan."
  40. else:
  41. loop {clan::%player%}:
  42. send "{@prefix} &e%player% &7has left your clan!"
  43. delete {clan::%player%}
  44. send "{@prefix} &7You have left your clan."
  45.  
  46. if arg 1 is "disband":
  47. if {clan::%player%.leader} is player:
  48. loop {clan::%player%.regular}:
  49. delete {clan::%player%}
  50. send "{@prefix} &7Your clan was disbanded!" to loop-player
  51. else:
  52. send "{@prefix} &7You are not the leader of a clan."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement