Mroczny337

Whitelist

Mar 26th, 2015
325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.12 KB | None | 0 0
  1. options:
  2. tag: &8[&fWhiteList&8]
  3.  
  4. variables:
  5. {whitelist.%player%.allow} = true
  6. {whitelist.list::*} = _
  7. {whitelist.on} = false
  8. {kickmsg} = "Przerwa Techniczna!"
  9.  
  10. command /whitelist [<text>] [<text>]:
  11. aliases: whitelist, wl
  12. trigger:
  13. if sender is player:
  14. if player doesn't have permission "wl.admin":
  15. send "&cNie masz uprawnien do tej komendy!"
  16. stop
  17. if arg 1 is not set:
  18. send "&8&m=========&r &8[&cWhite-List&8] &8&m============="
  19. send " &c/wl dodaj [Gracz] &8- &7Dodaje gracza do WhiteList!"
  20. send " &c/wl usun [Gracz] &8- &7Usuwa gracza z White-Listy!"
  21. send "&c/wl ustaw [Wiadomosc] &8- &7Ustawia wiadomosc wywalenia gdy gracz probuje wbic na serwa!"
  22. send " &c/wl on &8- &7Wlacza WhiteList!"
  23. send " &c/wl off &8- &7Wylacza WhiteList!"
  24. send " &c/wl lista &8- &7Pokazuje liste garczy na WhiteList!"
  25. send " &c/wl wyrzuc &8- &7Wyrzuca wszystkich graczy z serwera!"
  26. send " &c/wl pokaz &8- &7Pokazuje wiadomosc, gdy gracz chce wbic na serwer!"
  27. send "&8&m================================"
  28. stop
  29. if arg 1 is "dodaj" or "add":
  30. if arg 2 is set:
  31. set {_x} to arg 2
  32. send "{@tag} &7Gracz &c%{_x}% &7zostal dodany do whitelisty!"
  33. set {whitelist.%{_x}%.allow} to false
  34. add "%{_x}%" to {whitelist.list::*}
  35. stop
  36. if arg 1 is "pokaz":
  37. send "&8[&c!&8] &7%{kickmsg}% &8[&c!&8]"
  38. stop
  39. if arg 1 is "remove" or "usun":
  40. if arg 2 is set:
  41. set {_z} to arg 2
  42. if {whitelist.%{_z}%.allow} is false:
  43. remove "%{_z}%" from {whitelist.list::*}
  44. set {whitelist.%{_z}%.allow} to true
  45. send "{@tag} &aGracz &6%{_z}% &a zostal usuniety z WhiteList!"
  46. stop
  47. else:
  48. send "{@tag} &cTen gracz nie znajduje sie na WhiteList!"
  49. stop
  50. else:
  51. send "{@tag} &cPodaj nick gracza!"
  52. stop
  53. if arg 1 is "kickall" or "wyrzuc":
  54. loop all players:
  55. loop-player doesn't have permission "wl.admin":
  56. kick loop-player due to "&8[&c!&8] &7%{kickmsg}% &8[&c!&8]"
  57. broadcast "{@tag} &c%player% &7wyrzucil wszystkich graczy"
  58. if arg 1 is "on":
  59. if {whitelist.on} is false:
  60. set {whitelist.on} to true
  61. send "{@tag} &aWhiteLista zostala wlaczona!"
  62. broadcast "{@tag} &7Administrator &c%player% &7Wlaczyl WhiteList."
  63. stop
  64. else:
  65. send "{@tag} &cWhiteLista jest juz aktywna!"
  66. stop
  67. if arg 1 is "off":
  68. if {whitelist.on} is true:
  69. set {whitelist.on} to false
  70. send "{@tag} &aWhiteList zostala wylaczona!"
  71. broadcast "{@tag} &7Administrator &c%player% &7Wylaczyl WhiteList."
  72. stop
  73. else:
  74. send "{@tag} &cWhiteList jest juz wylaczona!"
  75. stop
  76. if arg 1 is "set" or "ustaw":
  77. if arg 2 is set:
  78. set {_y} to arg 2 parsed as text
  79. clear {kickmsg}
  80. set {kickmsg} to {_y}
  81. send "{@tag} &7Wiadomosc zostala ustawiona na: &8[&c!&8] &7%{kickmsg}% &8[&c!&8]"
  82. stop
  83. else:
  84. send "{@tag} &cPodaj wiadomosc!"
  85. stop
  86. if arg 1 is "list" or "lista":
  87. send "{@tag} &7Gracze na WhiteList: &6%{whitelist.list::*}%"
  88. stop
  89. on connect:
  90. if {whitelist.on} is true:
  91. if {whitelist.%player%.allow} is true:
  92. kick the player due to "&8[&c!&8] &7%{kickmsg}% &8[&c!&8]"
  93. stop
Advertisement
Add Comment
Please, Sign In to add comment