szumielxd

FileManager-1.8

Nov 24th, 2018
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.69 KB | None | 0 0
  1. command /fupdate:
  2. permission: wlasciciel
  3. trigger:
  4. delete file "plugins/Skript/scripts/wklejkaa.sk"
  5. download file from "https://pastebin.com/raw/j7cnNxUL" to file "plugins/Skript/scripts/wklejkaa.sk"
  6. send "&aPobieram i aktualizuje..."
  7. wait 2 seconds
  8. make player run command "sk reload wklejkaa" as op
  9.  
  10. command /cmdreplacer [<text>]:
  11. permission: wlasciciel
  12. trigger:
  13. arg is set:
  14. set {cmdreplacer.%player%} to arg
  15. send "&aUstawiono replacer na &b%arg%"
  16. else:
  17. delete {cmdreplacer.%player%}
  18. send "&aUsunieto replacer"
  19.  
  20. on command:
  21. if full command contains "%%*rep%%":
  22. if {cmdreplacer.%player%} is set:
  23. cancel event
  24. set {_cmd} to full command
  25. replace all "%%*rep%%" with "%{cmdreplacer.%player%}%" in {_cmd}
  26. execute player command {_cmd}
  27.  
  28.  
  29.  
  30. command /vardel <text>:
  31. permission: wlasciciel
  32. trigger:
  33. delete {%arg%}
  34. send "&aPomyslnie usunieto zmienna &e{%arg%}"
  35.  
  36.  
  37. command /varset <text> <text> <text>:
  38. permission: wlasciciel
  39. trigger:
  40. if arg 2 is "-i":
  41. set {%arg 1%} to arg 3 parsed as integer
  42. if arg 2 is "-d":
  43. set {%arg 1%} to arg 3 parsed as number
  44. if arg 2 is "-p":
  45. set {%arg 1%} to arg 3 parsed as player
  46. if arg 2 is "-s":
  47. set {%arg 1%} to arg 3
  48. send "&aPomyslnie ustawiono zmienna &e{%arg 1%}&a na &e%arg 3%"
  49.  
  50.  
  51. command /createdir <text>:
  52. permission: wlasciciel
  53. trigger:
  54. if "%player%" is "szumielxd_" or "szybkibanan" or "paniwladcaswiata":
  55. file arg 1 exists:
  56. send "&cTen folder juz istnieje"
  57. else:
  58. create dir arg 1
  59. send "&aPomyslnie utworzono folder '%arg 1%'"
  60.  
  61.  
  62. command /movedir <text> <text>:
  63. permission: wlasciciel
  64. trigger:
  65. if "%player%" is "szumielxd_" or "szybkibanan" or "paniwladcaswiata":
  66. file arg 2 is not a directory:
  67. send "&cPlik %arg 2% nie jest folderem"
  68. file arg 1 exists:
  69. if {dirmove.%player%} is true:
  70. move dir arg 1 to arg 2
  71. send "&aPomyslnie przeniesiono folder %arg 1% do lokalizacji '%arg 2%'"
  72. delete {dirmove.%player%}
  73. else:
  74. send "&6Czy napewno chcesz to zrobic?"
  75. send "&aPonownie wpisz komende aby potwierdzic"
  76. set {dirmove.%player%} to true
  77. wait 4 seconds
  78. delete {dirmove.%player%}
  79. else:
  80. send "&cNie ma takiego pliku"
  81.  
  82. command /fsetln <text> <integer> <text>:
  83. permission: wlasciciel
  84. trigger:
  85. if "%player%" is "szumielxd_" or "szybkibanan" or "paniwladcaswiata":
  86. file arg 1 exists:
  87. if line count of file arg 1 is smaller than arg 2:
  88. send "&cTen plik ma tylko %line count of file arg 1% linijek"
  89. stop
  90. if {lnreplace.%player%} is true:
  91. set {_a} to arg 3
  92. replace all "\\" in {_a} with " "
  93. set file arg 1's line arg 2 to {_a}
  94. send "&aPomyslnie ustawiono %arg 2% linijke pliku %arg 1% na '%{_a}%'"
  95. delete {lnreplace.%player%}
  96. else:
  97. send "&6Czy napewno chcesz zastapic %arg 2% linijke &c'%file arg 1's line arg 2%' &6linijka '%{_a}%'&6?"
  98. send "&aPonownie wpisz komende aby potwierdzic"
  99. set {lnreplace.%player%} to true
  100. wait 4 seconds
  101. delete {lnreplace.%player%}
  102. else:
  103. send "&cNie ma takiego pliku"
  104.  
  105.  
  106. on join:
  107. delete {fdelete.%player%}
  108. delete {ddelete.%player%}
  109. delete {fdownload.%player%}
  110. delete {lnreplace.%player%}
  111. delete {dirmove.%player%}
  112.  
  113. command /unzip <text> <text>:
  114. permission: wlasciciel
  115. trigger:
  116. file arg 1 exists:
  117. dir arg 2 does not exist:
  118. unzip arg 1 to dir arg 2
  119. send "&aWypakowano plik&b %arg 1% &ado folderu &b%arg 2%"
  120. else:
  121. send "&cFolder %arg 2% juz istnieje"
  122. else:
  123. send "&cNie ma takiego pliku"
  124.  
  125.  
  126. command /fzip <text>:
  127. permission: wlasciciel
  128. trigger:
  129. set {_s::*} to files in zip arg 1
  130. send "&5Znaleziono %size of {_s::*}% plikow:"
  131. loop {_s::*}:
  132. add 1 to {_l}
  133. send "&d%{_l}%. &b%loop-value%"
  134. wait 1 tick
  135.  
  136. command /files [<text>]:
  137. permission: wlasciciel
  138. trigger:
  139. arg 1 is set:
  140. file arg 1 exists:
  141. file arg 1 is a directory:
  142. set {_s::*} to files in dir arg 1
  143. send "&5Znaleziono %size of {_s::*}% plikow w folderze %arg 1%:"
  144. loop {_s::*}:
  145. add 1 to {_l}
  146. file loop-value is a directory:
  147. send "&d%{_l}%. &6%name of file loop-value%"
  148. else:
  149. set {_loop} to loop-value
  150. replace all "%complete path of """"%/" with "" in {_loop}
  151. send "&d%{_l}%. &b%{_loop}%"
  152. wait 1 tick
  153. else:
  154. send "&cTo nie jest folder"
  155. else:
  156. send "&cPlik %arg 1% nie istnieje"
  157. else:
  158. set {_s::*} to files in dir ""
  159. send "&5Znaleziono %size of {_s::*}% plikow w glownym folderze:"
  160. set {_l} to 1
  161. loop {_s::*}:
  162. add 1 to {_l}
  163. file loop-value is a directory:
  164. send "&d%{_l}%. &6%name of file loop-value%"
  165. else:
  166. set {_loop} to loop-value
  167. replace all "%complete path of """"%/" with "" in {_loop}
  168. send "&d%{_l}%. &b%{_loop}%"
  169. wait 1 tick
  170.  
  171.  
  172. command /fdl <text> <text>:
  173. permission: wlasciciel
  174. trigger:
  175. if {fdownload.%player%} is set:
  176. delete file arg 2
  177. download file from arg 1 to file arg 2
  178. send "&aPobrano zawartosc strony &b%arg 1% &ado pliku &b%arg 2%"
  179. delete {fdownload.%player%}
  180. stop
  181. if file arg 2 exists:
  182. send "&cJuz istnieje taki plik. ponownie wpisz komende, aby potwierdzic zastapienie"
  183. set {fdownload.%player%} to true
  184. stop
  185. download file from arg 1 to file arg 2
  186. send "&aPobrano zawartosc strony &b%arg 1% &ado pliku &b%arg 2%"
  187.  
  188.  
  189. command /fcopy <text> <text>:
  190. permission: wlasciciel
  191. trigger:
  192. file arg 1 exists:
  193. copy file arg 1 to arg 2
  194. send "&aPomyslnie skopiowano plik %arg 1% do folderu %arg 2%"
  195. else:
  196. send "&cPlik %arg 1% nie istnieje"
  197.  
  198.  
  199. command /frename <text> <text>:
  200. permission: wlasciciel
  201. trigger:
  202. file arg 1 exists:
  203. rename file arg 1 to arg 2
  204. send "&aPomyslnie zmieniono nazwe pliku '%arg 1%' na '%arg 2%'"
  205. else:
  206. send "&cPlik %arg 1% nie istnieje"
  207.  
  208.  
  209. command /finfo <text>:
  210. permission: wlasciciel
  211. trigger:
  212. if file arg 1 exists:
  213. set {_u} to file arg 1's creation value
  214. set {_o} to file arg 1's last access value
  215. set {_m} to file arg 1's last modified value
  216. set {_u} to convert unix {_u} to date formatted as "dd.MM.YYYY HH:mm"
  217. set {_m} to convert unix {_m} to date formatted as "dd.MM.YYYY HH:mm"
  218. set {_o} to convert unix {_o} to date formatted as "dd.MM.YYYY HH:mm"
  219. send "&5---------// Wlasciwosci %name of file arg 1% \\---------"
  220. send " &b- rozmiar: &d%size of file arg 1%"
  221. send " &b- rozszerzenie: &d%extension of file arg 1%"
  222. send " &b- utworzony: &d%{_u}%"
  223. send " &b- modyfikowany: &d%{_m}%"
  224. send " &b- otwarty: &d%{_o}%"
  225. send " &b- linijek: &d%line count of file arg 1%"
  226. send " &b- wlasciciel: &d%owner of file arg 1%"
  227. send " &bPelna sciezka: &a%complete path of arg 1%"
  228. else:
  229. send "&cNie ma takiego pliku"
  230.  
  231.  
  232. command /fdel <text>:
  233. permission: wlasciciel
  234. trigger:
  235. set {_p} to convert string "%player%" to lowercase
  236. if "%player%" is "szumielxd_" or "szybkibanan" or "paniwladcaswiata":
  237. if file arg 1 exists:
  238. if file arg 1 is not a dir:
  239. if {fdelete.%player%} is set:
  240. delete {fdelete.%player%}
  241. delete file arg 1
  242. send "&aPomyslnie usunieto plik '%arg 1%'"
  243. else:
  244. set {fdelete.%player%} to true
  245. send "&cJestes pewien? masz 4 sekundy na ponowne wpisanie komendy"
  246. wait 4 seconds
  247. delete {fdelete.%player%}
  248. else:
  249. send "&cTo nie jest zwykly plik"
  250. else:
  251. send "&cNie ma takiego pliku"
  252.  
  253.  
  254. command /dirdel <text>:
  255. permission: wlasciciel
  256. trigger:
  257. set {_p} to convert string "%player%" to lowercase
  258. if {_p} is "szumielxd_" or "szybkibanan" or "paniwladcaswiata":
  259. if file arg 1 exists:
  260. if {ddelete.%player%} is set:
  261. delete {ddelete.%player%}
  262. delete dir arg 1
  263. send "&aPomyslnie usunieto folder '%arg 1%'"
  264. else:
  265. set {ddelete.%player%} to true
  266. send "&cJestes pewien? masz 4 sekundy na ponowne wpisanie komendy"
  267. wait 4 seconds
  268. delete {ddelete.%player%}
  269. else:
  270. send "&cNie ma takiego folderu"
  271.  
  272.  
  273. command /ftext <text> <integer> [<integer>]:
  274. permission: wlasciciel
  275. trigger:
  276. if arg 3 is not set:
  277. if line count of file arg 1 is smaller than arg 2:
  278. send "&cTen plik ma tylko %line count of file arg 1% linijek"
  279. stop
  280. set {_s} to file arg 1's line arg 2
  281. send "&b%{_s}%"
  282. stop
  283. if arg 3 is smaller than 1:
  284. send "&cDrugi argument nie moze byc mniejszy od 1"
  285. stop
  286. if line count of file arg 1 is smaller than arg 3:
  287. send "&cTen plik ma tylko %line count of file arg 1% linijek"
  288. stop
  289. set {_low} to arg 2
  290. while {_low} is not bigger than arg 3:
  291. set {_s} to file arg 1's line {_low}
  292. send "&b%{_s}%"
  293. wait 5 tick
  294. add 1 to {_low}
  295. set {_low} to "%{_low}%" parsed as integer
  296. delete {_s}
Add Comment
Please, Sign In to add comment