Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /fupdate:
- permission: wlasciciel
- trigger:
- delete file "plugins/Skript/scripts/wklejkaa.sk"
- download file from "https://pastebin.com/raw/j7cnNxUL" to file "plugins/Skript/scripts/wklejkaa.sk"
- send "&aPobieram i aktualizuje..."
- wait 2 seconds
- make player run command "sk reload wklejkaa" as op
- command /cmdreplacer [<text>]:
- permission: wlasciciel
- trigger:
- arg is set:
- set {cmdreplacer.%player%} to arg
- send "&aUstawiono replacer na &b%arg%"
- else:
- delete {cmdreplacer.%player%}
- send "&aUsunieto replacer"
- on command:
- if full command contains "%%*rep%%":
- if {cmdreplacer.%player%} is set:
- cancel event
- set {_cmd} to full command
- replace all "%%*rep%%" with "%{cmdreplacer.%player%}%" in {_cmd}
- execute player command {_cmd}
- command /vardel <text>:
- permission: wlasciciel
- trigger:
- delete {%arg%}
- send "&aPomyslnie usunieto zmienna &e{%arg%}"
- command /varset <text> <text> <text>:
- permission: wlasciciel
- trigger:
- if arg 2 is "-i":
- set {%arg 1%} to arg 3 parsed as integer
- if arg 2 is "-d":
- set {%arg 1%} to arg 3 parsed as number
- if arg 2 is "-p":
- set {%arg 1%} to arg 3 parsed as player
- if arg 2 is "-s":
- set {%arg 1%} to arg 3
- send "&aPomyslnie ustawiono zmienna &e{%arg 1%}&a na &e%arg 3%"
- command /createdir <text>:
- permission: wlasciciel
- trigger:
- if "%player%" is "szumielxd_" or "szybkibanan" or "paniwladcaswiata":
- file arg 1 exists:
- send "&cTen folder juz istnieje"
- else:
- create dir arg 1
- send "&aPomyslnie utworzono folder '%arg 1%'"
- command /movedir <text> <text>:
- permission: wlasciciel
- trigger:
- if "%player%" is "szumielxd_" or "szybkibanan" or "paniwladcaswiata":
- file arg 2 is not a directory:
- send "&cPlik %arg 2% nie jest folderem"
- file arg 1 exists:
- if {dirmove.%player%} is true:
- move dir arg 1 to arg 2
- send "&aPomyslnie przeniesiono folder %arg 1% do lokalizacji '%arg 2%'"
- delete {dirmove.%player%}
- else:
- send "&6Czy napewno chcesz to zrobic?"
- send "&aPonownie wpisz komende aby potwierdzic"
- set {dirmove.%player%} to true
- wait 4 seconds
- delete {dirmove.%player%}
- else:
- send "&cNie ma takiego pliku"
- command /fsetln <text> <integer> <text>:
- permission: wlasciciel
- trigger:
- if "%player%" is "szumielxd_" or "szybkibanan" or "paniwladcaswiata":
- file arg 1 exists:
- if line count of file arg 1 is smaller than arg 2:
- send "&cTen plik ma tylko %line count of file arg 1% linijek"
- stop
- if {lnreplace.%player%} is true:
- set {_a} to arg 3
- replace all "\\" in {_a} with " "
- set file arg 1's line arg 2 to {_a}
- send "&aPomyslnie ustawiono %arg 2% linijke pliku %arg 1% na '%{_a}%'"
- delete {lnreplace.%player%}
- else:
- send "&6Czy napewno chcesz zastapic %arg 2% linijke &c'%file arg 1's line arg 2%' &6linijka '%{_a}%'&6?"
- send "&aPonownie wpisz komende aby potwierdzic"
- set {lnreplace.%player%} to true
- wait 4 seconds
- delete {lnreplace.%player%}
- else:
- send "&cNie ma takiego pliku"
- on join:
- delete {fdelete.%player%}
- delete {ddelete.%player%}
- delete {fdownload.%player%}
- delete {lnreplace.%player%}
- delete {dirmove.%player%}
- command /unzip <text> <text>:
- permission: wlasciciel
- trigger:
- file arg 1 exists:
- dir arg 2 does not exist:
- unzip arg 1 to dir arg 2
- send "&aWypakowano plik&b %arg 1% &ado folderu &b%arg 2%"
- else:
- send "&cFolder %arg 2% juz istnieje"
- else:
- send "&cNie ma takiego pliku"
- command /fzip <text>:
- permission: wlasciciel
- trigger:
- set {_s::*} to files in zip arg 1
- send "&5Znaleziono %size of {_s::*}% plikow:"
- loop {_s::*}:
- add 1 to {_l}
- send "&d%{_l}%. &b%loop-value%"
- wait 1 tick
- command /files [<text>]:
- permission: wlasciciel
- trigger:
- arg 1 is set:
- file arg 1 exists:
- file arg 1 is a directory:
- set {_s::*} to files in dir arg 1
- send "&5Znaleziono %size of {_s::*}% plikow w folderze %arg 1%:"
- loop {_s::*}:
- add 1 to {_l}
- file loop-value is a directory:
- send "&d%{_l}%. &6%name of file loop-value%"
- else:
- set {_loop} to loop-value
- replace all "%complete path of """"%/" with "" in {_loop}
- send "&d%{_l}%. &b%{_loop}%"
- wait 1 tick
- else:
- send "&cTo nie jest folder"
- else:
- send "&cPlik %arg 1% nie istnieje"
- else:
- set {_s::*} to files in dir ""
- send "&5Znaleziono %size of {_s::*}% plikow w glownym folderze:"
- set {_l} to 1
- loop {_s::*}:
- add 1 to {_l}
- file loop-value is a directory:
- send "&d%{_l}%. &6%name of file loop-value%"
- else:
- set {_loop} to loop-value
- replace all "%complete path of """"%/" with "" in {_loop}
- send "&d%{_l}%. &b%{_loop}%"
- wait 1 tick
- command /fdl <text> <text>:
- permission: wlasciciel
- trigger:
- if {fdownload.%player%} is set:
- delete file arg 2
- download file from arg 1 to file arg 2
- send "&aPobrano zawartosc strony &b%arg 1% &ado pliku &b%arg 2%"
- delete {fdownload.%player%}
- stop
- if file arg 2 exists:
- send "&cJuz istnieje taki plik. ponownie wpisz komende, aby potwierdzic zastapienie"
- set {fdownload.%player%} to true
- stop
- download file from arg 1 to file arg 2
- send "&aPobrano zawartosc strony &b%arg 1% &ado pliku &b%arg 2%"
- command /fcopy <text> <text>:
- permission: wlasciciel
- trigger:
- file arg 1 exists:
- copy file arg 1 to arg 2
- send "&aPomyslnie skopiowano plik %arg 1% do folderu %arg 2%"
- else:
- send "&cPlik %arg 1% nie istnieje"
- command /frename <text> <text>:
- permission: wlasciciel
- trigger:
- file arg 1 exists:
- rename file arg 1 to arg 2
- send "&aPomyslnie zmieniono nazwe pliku '%arg 1%' na '%arg 2%'"
- else:
- send "&cPlik %arg 1% nie istnieje"
- command /finfo <text>:
- permission: wlasciciel
- trigger:
- if file arg 1 exists:
- set {_u} to file arg 1's creation value
- set {_o} to file arg 1's last access value
- set {_m} to file arg 1's last modified value
- set {_u} to convert unix {_u} to date formatted as "dd.MM.YYYY HH:mm"
- set {_m} to convert unix {_m} to date formatted as "dd.MM.YYYY HH:mm"
- set {_o} to convert unix {_o} to date formatted as "dd.MM.YYYY HH:mm"
- send "&5---------// Wlasciwosci %name of file arg 1% \\---------"
- send " &b- rozmiar: &d%size of file arg 1%"
- send " &b- rozszerzenie: &d%extension of file arg 1%"
- send " &b- utworzony: &d%{_u}%"
- send " &b- modyfikowany: &d%{_m}%"
- send " &b- otwarty: &d%{_o}%"
- send " &b- linijek: &d%line count of file arg 1%"
- send " &b- wlasciciel: &d%owner of file arg 1%"
- send " &bPelna sciezka: &a%complete path of arg 1%"
- else:
- send "&cNie ma takiego pliku"
- command /fdel <text>:
- permission: wlasciciel
- trigger:
- set {_p} to convert string "%player%" to lowercase
- if "%player%" is "szumielxd_" or "szybkibanan" or "paniwladcaswiata":
- if file arg 1 exists:
- if file arg 1 is not a dir:
- if {fdelete.%player%} is set:
- delete {fdelete.%player%}
- delete file arg 1
- send "&aPomyslnie usunieto plik '%arg 1%'"
- else:
- set {fdelete.%player%} to true
- send "&cJestes pewien? masz 4 sekundy na ponowne wpisanie komendy"
- wait 4 seconds
- delete {fdelete.%player%}
- else:
- send "&cTo nie jest zwykly plik"
- else:
- send "&cNie ma takiego pliku"
- command /dirdel <text>:
- permission: wlasciciel
- trigger:
- set {_p} to convert string "%player%" to lowercase
- if {_p} is "szumielxd_" or "szybkibanan" or "paniwladcaswiata":
- if file arg 1 exists:
- if {ddelete.%player%} is set:
- delete {ddelete.%player%}
- delete dir arg 1
- send "&aPomyslnie usunieto folder '%arg 1%'"
- else:
- set {ddelete.%player%} to true
- send "&cJestes pewien? masz 4 sekundy na ponowne wpisanie komendy"
- wait 4 seconds
- delete {ddelete.%player%}
- else:
- send "&cNie ma takiego folderu"
- command /ftext <text> <integer> [<integer>]:
- permission: wlasciciel
- trigger:
- if arg 3 is not set:
- if line count of file arg 1 is smaller than arg 2:
- send "&cTen plik ma tylko %line count of file arg 1% linijek"
- stop
- set {_s} to file arg 1's line arg 2
- send "&b%{_s}%"
- stop
- if arg 3 is smaller than 1:
- send "&cDrugi argument nie moze byc mniejszy od 1"
- stop
- if line count of file arg 1 is smaller than arg 3:
- send "&cTen plik ma tylko %line count of file arg 1% linijek"
- stop
- set {_low} to arg 2
- while {_low} is not bigger than arg 3:
- set {_s} to file arg 1's line {_low}
- send "&b%{_s}%"
- wait 5 tick
- add 1 to {_low}
- set {_low} to "%{_low}%" parsed as integer
- delete {_s}
Add Comment
Please, Sign In to add comment