NNorbertPL

WhitelistManager+ 0.3

Oct 3rd, 2014
13,388
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.22 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.manager
  7. permisja_wiadomosc: &cBrak dostepu do tej komendy.
  8. domyslny_powod: &3Nie jestes na whiteliscie!
  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 "&cBledne uzycie, sproboj tak:"
  17. send "&c/whitelist (dodaj|usun) <player>"
  18. send "&c/whitelist (off|list|reload|kickall)"
  19. send "&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 "&7&o[%executor%: dodal %argument 2% do whitelisty]" to all ops
  27. send "&7&o[%executor%: dodal %argument 2% do whitelisty]" to console
  28.  
  29. send "Dodano %arg 2% do white-list"
  30. else:
  31. send "&c/whitelist dodaj <player>"
  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 "&7"
  37. send "&7&o[%executor%: usunal %arg 2% z whitelisty" to all ops
  38. send "&7&o[%executor%: usunal %arg 2% z whitelisty" to console
  39. else:
  40. send "&c/whitelist usun <player>"
  41. arg 1 is "on":
  42. set {whitelist} to true
  43. arg 2 is set:
  44. set {wl_reason} to coloured argument 2
  45. arg 2 is not set:
  46. set {wl_reason} to "{@domyslny_powod}"
  47. send "&7&o[%executor%: wlaczyl whiteliste, powod: &3%{wl_reason}%]" to all ops
  48. send "&7&o[%executor%: wlaczyl whiteliste, powod: &3%{wl_reason}%]" to console
  49. send "&fWlaczyles whitelist, powod: %{wl_reason}%"
  50. arg 1 is "off":
  51. set {whitelist} to false
  52. send "&7&o[%executor%: wylaczyl whiteliste]" to all ops
  53. send "&7&o[%executor%: wylaczyl whiteliste]" to console
  54. send "&fWylaczyles whitelist"
  55. arg 1 is "list" or "lista":
  56. if {wl_lista::*} is not set:
  57. set {wl_lista::*} to ""
  58. send "Gracze na whitelist: %{wl_lista::*}%"
  59. if {wl_lista::*} is not set:
  60. clear {wl_lista::*}
  61. clear {wl::*}
  62. remove "and" from {wl_lista::*}
  63. arg 1 is "reload" or "przeladuj":
  64. execute player command "sk reload %script%" # Jesli nie masz wildskripta do reloadowania bedziesz potrzebowal permisji skript.*#
  65. run player command "sk reload %script%" as op #Jesli nie mamy WildSkripta to ta funkcja nie bedzie dzialac.#
  66. send "&7&o[%executor%: Przeladowano whitelist]" to console
  67. send "&7&o[%executor%: Przeladowano whitelist]" to all ops
  68.  
  69. arg 1 is "kickall":
  70. loop all players:
  71. if {whitelist} is true:
  72. if {wl::%loop-player%} is true:
  73. stop
  74. else:
  75. kick loop-player due to "%{_wl_reason}%"
  76. send "&7&o[%executor%: wyrzucil wszystkich]" to console
  77. send "&7&o[%executor%: wyrzucil wszystkich]" to all ops
  78. if {whitelist} is false:
  79. send "Zeby wyrzucic wszystkich musisz wlaczyc whiteliste."
  80. arg 1 is "reset":
  81. if {@reset} is true:
  82. clear {wl::*}
  83. clear {wl_lista::*}
  84. set {whitelist} to false
  85. send "&7&o[%executor%: wyczyscil whiteliste do stanu poczatkowego!" to console
  86. send "&7&o[%executor%: wyrzucil wszystkich]" to all ops
  87. else:
  88. send "Opcja wylaczona."
  89. 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":
  90. send "&cPodany argument jest nie prawidlowy."
  91. if player doesn't have permissions "{@permisja}":
  92. send "{@permisja_wiadomosc}"
  93. on command "{@komenda}?":
  94. cancel event
  95. execute player command "5235kj23kl5j23lk5j2l3kj5"
  96. on connect:
  97. if {@op_join} is true:
  98. if player has permissions "{@op_permission}"
  99. stop
  100. if player is op:
  101. stop
  102. if {whitelist} is true:
  103. if {wl::%player%} is true:
  104. stop
  105. else:
  106. kick player due to "%{wl_reason}%"
  107. on command "bukkit:whitelist":
  108. cancel event
  109. send "/whitelist"
  110. on command "minecraft:whitelist":
  111. cancel event
  112. send "/whitelist"
Advertisement
Add Comment
Please, Sign In to add comment