AxonGaming

Untitled

Aug 17th, 2016
659
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.74 KB | None | 0 0
  1. options:
  2. op_join: true #Czy gracze z permisja podana nizej moga wchodzic na serwer? - nawet gdy nie sa na whiteliscie true - TAK, false - NIE#
  3. op_permission: whitelist.join
  4. aliasy: /wl
  5. komenda: whitelist
  6. permisja: whitelist.lotus
  7. permisja_wiadomosc: &8» &4Blad: &cNie masz dostepu!
  8. domyslny_powod: &8» &4Blad: &cNie jestes na whitelist! %newline% &8» SIEMANKO
  9. reset: false #zeby wlaczyc mozliwosc resetowania whitelist do stanu poczatkowego wpisz true#
  10. command /{@komenda} [<text>] [<text>]:
  11. aliases: {@aliasy}
  12. executable by: players and console
  13. trigger:
  14. if player has permissions "@{permisja}":
  15. arg 1 is not set:
  16. send "&8» &cKomendy:"
  17. send "&8» &c/whitelist (dodaj|usun) <player>"
  18. send "&8» &c/whitelist (off|list|reload|kickall)"
  19. send "&8» &c/whitelist on <powod>"
  20. arg 1 is "dodaj" or "add":
  21. arg 2 is set:
  22. clear {wl::%arg 2%}
  23. remove argument 2 from {wl_lista::*}
  24. set {wl::%arg 2%} to true
  25. add argument 2 to {wl_lista::*}
  26. send "&8» &c%player% &6dodal &c%argument 2% &6do whitelist!" to all ops
  27. send "&8» &c%player% &6dodal &c%argument 2% &6do whitelist!" to console
  28.  
  29. send "&8» &7Dodano &6%arg 2% &7do white-list"
  30. else:
  31. send "&8» &4Blad: &cuzyj: /whitelist dodaj <gracz>"
  32. arg 1 is "usun" or "remove":
  33. arg 2 is set:
  34. clear {wl::%arg 2%}
  35. remove argument 2 from {wl_lista::*}
  36. send "&8» &c%executor% &6usunal &c%arg 2% &6z whitelisty" to all ops
  37. send "&8» &c%executor% &6usunal &c%arg 2% &6z whitelisty" to console
  38. else:
  39. send "&8» &4Blad: &cuzyj: /whitelist usun <gracz>"
  40. arg 1 is "on":
  41. set {whitelist} to true
  42. arg 2 is set:
  43. set {wl_reason} to coloured argument 2
  44. arg 2 is not set:
  45. set {wl_reason} to "{@domyslny_powod}"
  46. send "&8» &c%executor% &6wlaczyl whiteliste, powod: &c%{wl_reason}%" to all ops
  47. send "&8» &c%executor% &6wlaczyl whiteliste, powod: &c%{wl_reason}%" to console
  48. send "&8» &6Wlaczyles whitelist, powod: &c%{wl_reason}%"
  49. arg 1 is "off":
  50. set {whitelist} to false
  51. send "&8» &c%executor% &6wylaczyl whiteliste" to all ops
  52. send "&8» &c%executor% &6wylaczyl whiteliste" to console
  53. send "&fWylaczyles whitelist"
  54. arg 1 is "list" or "lista":
  55. if {wl_lista::*} is not set:
  56. set {wl_lista::*} to ""
  57. send "&8» &7Gracze na whitelist: &6%{wl_lista::*}%"
  58. if {wl_lista::*} is not set:
  59. clear {wl_lista::*}
  60. clear {wl::*}
  61. remove "and" from {wl_lista::*}
  62. arg 1 is "reload" or "przeladuj":
  63. execute player command "sk reload %script%" # Jesli nie masz wildskripta do reloadowania bedziesz potrzebowal permisji skript.*#
  64. run player command "sk reload %script%" as op #Jesli nie mamy WildSkripta to ta funkcja nie bedzie dzialac.#
  65. send "&7&o[%executor%: Przeladowano whitelist]" to console
  66. send "&7&o[%executor%: Przeladowano whitelist]" to all ops
  67.  
  68. arg 1 is "kickall":
  69. loop all players:
  70. if {whitelist} is true:
  71. if {wl::%loop-player%} is true:
  72. stop
  73. else:
  74. kick loop-player due to "%{_wl_reason}%"
  75. send "&7&o[%executor%: wyrzucil wszystkich]" to console
  76. send "&7&o[%executor%: wyrzucil wszystkich]" to all ops
  77. if {whitelist} is false:
  78. send "Zeby wyrzucic wszystkich musisz wlaczyc whiteliste."
  79. arg 1 is "reset":
  80. if {@reset} is true:
  81. clear {wl::*}
  82. clear {wl_lista::*}
  83. set {whitelist} to false
  84. send "&7&o[%executor%: wyczyscil whiteliste do stanu poczatkowego!" to console
  85. send "&7&o[%executor%: wyrzucil wszystkich]" to all ops
  86. else:
  87. send "Opcja wylaczona."
  88. arg 1 is not "reload" or "przeladuj" or "list" or "lista" or "off" or "on" or "usun" or "remove" or "add" or "dodaj" or "kickall" or "reset":
  89. send "&cPodany argument jest nie prawidlowy."
  90. if player doesn't have permissions "{@permisja}":
  91. send "{@permisja_wiadomosc}"
  92. on command "{@komenda}?":
  93. cancel event
  94. execute player command "5235kj23kl5j23lk5j2l3kj5"
  95. on connect:
  96. if {@op_join} is true:
  97. if player has permissions "{@op_permission}"
  98. stop
  99. if player is op:
  100. stop
  101. if {whitelist} is true:
  102. if {wl::%player%} is true:
  103. stop
  104. else:
  105. kick player due to "%{wl_reason}%"
Advertisement
Add Comment
Please, Sign In to add comment