Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on break:
- player cannot build at the targeted block:
- message "&cHey! Nie mozesz tu niszczyc!"
- cancel event
- options:
- op_join: true #Czy gracze z permisja podana nizej moga wchodzic na serwer? - nawet gdy nie sa na whiteliscie true - TAK, false - NIE#
- op_permission: whitelist.join
- aliasy: /wl
- komenda: whitelist
- permisja: whitelist.manager
- permisja_wiadomosc: &cBrak dostepu do tej komendy.
- domyslny_powod: &3Nie jestes na whiteliscie!
- reset: false #zeby wlaczyc mozliwosc resetowania whitelist do stanu poczatkowego wpisz true#
- command /{@komenda} [<text>] [<text>]:
- aliases: {@aliasy}
- executable by: players and console
- trigger:
- if player has permissions "@{permisja}":
- arg 1 is not set:
- send "&cBledne uzycie, sproboj tak:"
- send "&c/whitelist (dodaj|usun) <player>"
- send "&c/whitelist (off|list|reload|kickall)"
- send "&c/whitelist on <powod>"
- arg 1 is "dodaj" or "add":
- arg 2 is set:
- clear {wl::%arg 2%}
- remove argument 2 from {wl_lista::*}
- set {wl::%arg 2%} to true
- add argument 2 to {wl_lista::*}
- send "&7&o[%executor%: dodal %argument 2% do whitelisty]" to all ops
- send "&7&o[%executor%: dodal %argument 2% do whitelisty]" to console
- send "Dodano %arg 2% do white-list"
- else:
- send "&c/whitelist dodaj <player>"
- arg 1 is "usun" or "remove":
- arg 2 is set:
- clear {wl::%arg 2%}
- remove argument 2 from {wl_lista::*}
- send "&7"
- send "&7&o[%executor%: usunal %arg 2% z whitelisty" to all ops
- send "&7&o[%executor%: usunal %arg 2% z whitelisty" to console
- else:
- send "&c/whitelist usun <player>"
- arg 1 is "on":
- set {whitelist} to true
- arg 2 is set:
- set {wl_reason} to coloured argument 2
- arg 2 is not set:
- set {wl_reason} to "{@domyslny_powod}"
- send "&7&o[%executor%: wlaczyl whiteliste, powod: &3%{wl_reason}%]" to all ops
- send "&7&o[%executor%: wlaczyl whiteliste, powod: &3%{wl_reason}%]" to console
- send "&fWlaczyles whitelist, powod: %{wl_reason}%"
- arg 1 is "off":
- set {whitelist} to false
- send "&7&o[%executor%: wylaczyl whiteliste]" to all ops
- send "&7&o[%executor%: wylaczyl whiteliste]" to console
- send "&fWylaczyles whitelist"
- arg 1 is "list" or "lista":
- if {wl_lista::*} is not set:
- set {wl_lista::*} to ""
- send "Gracze na whitelist: %{wl_lista::*}%"
- if {wl_lista::*} is not set:
- clear {wl_lista::*}
- clear {wl::*}
- remove "and" from {wl_lista::*}
- arg 1 is "reload" or "przeladuj":
- execute player command "sk reload %script%" # Jesli nie masz wildskripta do reloadowania bedziesz potrzebowal permisji skript.*#
- run player command "sk reload %script%" as op #Jesli nie mamy WildSkripta to ta funkcja nie bedzie dzialac.#
- send "&7&o[%executor%: Przeladowano whitelist]" to console
- send "&7&o[%executor%: Przeladowano whitelist]" to all ops
- arg 1 is "kickall":
- loop all players:
- if {whitelist} is true:
- if {wl::%loop-player%} is true:
- stop
- else:
- kick loop-player due to "%{_wl_reason}%"
- send "&7&o[%executor%: wyrzucil wszystkich]" to console
- send "&7&o[%executor%: wyrzucil wszystkich]" to all ops
- if {whitelist} is false:
- send "Zeby wyrzucic wszystkich musisz wlaczyc whiteliste."
- arg 1 is "reset":
- if {@reset} is true:
- clear {wl::*}
- clear {wl_lista::*}
- set {whitelist} to false
- send "&7&o[%executor%: wyczyscil whiteliste do stanu poczatkowego!" to console
- send "&7&o[%executor%: wyrzucil wszystkich]" to all ops
- else:
- send "Opcja wylaczona."
- 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":
- send "&cPodany argument jest nie prawidlowy."
- if player doesn't have permissions "{@permisja}":
- send "{@permisja_wiadomosc}"
- on command "{@komenda}?":
- cancel event
- execute player command "5235kj23kl5j23lk5j2l3kj5"
- on connect:
- if {@op_join} is true:
- if player has permissions "{@op_permission}"
- stop
- if player is op:
- stop
- if {whitelist} is true:
- if {wl::%player%} is true:
- stop
- else:
- kick player due to "%{wl_reason}%"
- on command "bukkit:whitelist":
- cancel event
- send "/whitelist"
- on command "minecraft:whitelist":
- cancel event
- send "/whitelist"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement