Advertisement
Guest User

Untitled

a guest
Jan 29th, 2020
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.93 KB | None | 0 0
  1. # =============================================================================
  2. # SKRIPT FOR MAKING CLANS
  3. # BY MINIOOF
  4. # DISCORD: minioof#2180
  5. # REQUIREMENTS: SKRIPT, LUCKPERMS
  6. # COPYRIGHT © 2020
  7. # =============================================================================
  8.  
  9. options:
  10. prefix: &8[&bClans&8]
  11.  
  12. command /clans [<text>] [<text>]:
  13. permission message: &fUnknown command. Type "/help" for help.
  14. permission: clans.help
  15. trigger:
  16. if arg-1 is "create":
  17. if player has permission "clans.create":
  18. if arg-2 is set:
  19. if {clans.name.%arg-2%} isn't set:
  20. execute console command "lp user %player% meta setsuffix 100 "" &8[&b%arg-2%&8]&r"" "
  21. send "{@prefix} &bYou have successfully create clan named &8[&b%arg-2%&8]"
  22. set {clans.name.%arg-2%} to "claimed"
  23. set {%player%.clan} to "%arg-2%"
  24. if {clans.name.%arg-2%} is "claimed":
  25. send "{@prefix} &cClan name is already taken!"
  26. if arg-2 is not set:
  27. send "{@prefix} &cPlease define an valid clan name!"
  28. else:
  29. send "&fUnknown command. Type ""/help"" for help."
  30. if arg-1 is "delete":
  31. if arg-2 is "{%player%.clan}":
  32. execute console command "lp user %player% meta removesuffix"
  33. else:
  34. send "{@prefix} &cYou can only leave your own clan!"
  35. if arg-1 is "invite":
  36. if arg-2 is set:
  37. if {%arg-2%.clan} isn't set:
  38. set {%arg-2%.clan.invite} to "%{%player%.clan}%"
  39. send "{@prefix} &aSuccessfully invited &a%arg-2% &ato your clan!"
  40. send "{@prefix} &bYou have been invited to join &b%{%player%.clan}%&b clan!" to arg-2
  41. send "{@prefix} &bType &a/clans join %{%player%.clan}% &bto accept the request!" to arg-2
  42. if {%arg-2%.clan} is set:
  43. send "{@prefix} &cPlayer is already in a clan!"
  44. if arg-2 isn't set:
  45. send "{@prefix} &cPlease define a player!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement