Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /searchsk <text>:
- permission: wlasciciel
- trigger:
- if arg is "-stop":
- if {searchsk.stop.%player%} is not set:
- send "&cNie wykonujesz zadnej czynnosci"
- stop
- else:
- set {searchsk.stop.%player%} to true
- stop
- set {_s::*} to files in dir "plugins/Skript/scripts"
- if {searchsk.stop.%player%} is false:
- send "Juz wykonujesz ten proces"
- stop
- set {searchsk.stop.%player%} to false
- send "&a&lZnaleziono &7&l%size of {_s::*}% &a&lplikow"
- loop {_s::*}:
- if {searchsk.stop.%player%} is true:
- send "&a&lZatrzymuje szukanie"
- delete {searchsk.stop.%player%}
- stop
- file "%loop-value%" is not a directory:
- set {_low} to 1
- wait 10 ticks
- set {_m} to loop-value
- replace all "/home/servers/mcsurvi/
- send "&2Przeszukuje plik '&a%{_m}%&2':"
- set {_i} to 0
- while line count of file loop-value is not smaller than {_low}:
- file loop-value's line {_low} contains arg:
- send " &aZnaleziono fraze &e'%arg%' &aw &e%{_low}% &alinijce"
- add 1 to {_low}
- add 1 to {_i}
- if {searchsk.stop.%player%} is true:
- send "&a&lZatrzymuje szukanie"
- delete {searchsk.stop.%player%}
- stop
- if {_i} is 5:
- set {_i} to 0
- wait 1 ticks
- delete {searchsk.stop.%player%}
- send "&a&lKoniec"
Add Comment
Please, Sign In to add comment