Skocz do zawartości
  • 0

Dokończenie kodu na usuwanie i wysyłanie


Pytanie

Witam, dokończy ktoś kod na dopisanie, usunięcie pliku nr 1 oraz przejście do następnego?

command alFiles:
	trigger:
		set {_name::*} to all the files from directory "Gods/"
		set {_FILE::1} to file name of {_name::1}
		loop {_name::*}:
			set {_t} to "%loop-value%"
			replace all "A" and "a" and "b" and "c" in {_t} with "s"
			send "%{_t}%"
			send "%2nd element of {_t}%"

Kod ma wysłać nazwę pliku, usunąć go i przejść do następnego i to samo, aż do usunięcia wszystkich plików znajdujących się w Gods/ folderze.

Wersje: Skript 2.5-alpha1. Minecraft 1.15.2.

Edytowane przez Misio12320
Odnośnik do komentarza
https://skript.pl/temat/36806-doko%C5%84czenie-kodu-na-usuwanie-i-wysy%C5%82anie/
Udostępnij na innych stronach

10 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
command alFiles:
	trigger:
		set {_name::*} to all the files from directory "Gods/" 
		loop {_name::*}:
			set {_t} to "%loop-value%"
			replace all "A" and "a" and "b" and "c" in {_t} with "s"
			send "%{_t}%"
            delete file "Gods/%{_t}%" 
			

Ma usuwac ten plik z {_t}? Czyli plik bez tych "A" "a" "b" itp. 

Odnośnik do komentarza
https://skript.pl/temat/36806-doko%C5%84czenie-kodu-na-usuwanie-i-wysy%C5%82anie/#findComment-234759
Udostępnij na innych stronach

  • 0

Wydaje mi się, że tak najlepiej jakby {_t} bylo {_t::1} + replace. Ale to pewnie nie zadziała więc tak:

 

T::1 to plik pierwszy z wszystkich plików :: *. I jak się wyślę send to ma usunąć plik nr 1 i przejść do następnego, aż do konca

Odnośnik do komentarza
https://skript.pl/temat/36806-doko%C5%84czenie-kodu-na-usuwanie-i-wysy%C5%82anie/#findComment-234761
Udostępnij na innych stronach

  • 0
31 minut temu, Misio12320 napisał:

Wydaje mi się, że tak najlepiej jakby {_t} bylo {_t::1} + replace. Ale to pewnie nie zadziała więc tak:

 

T::1 to plik pierwszy z wszystkich plików :: *. I jak się wyślę send to ma usunąć plik nr 1 i przejść do następnego, aż do konca

No to zobacz 

Odnośnik do komentarza
https://skript.pl/temat/36806-doko%C5%84czenie-kodu-na-usuwanie-i-wysy%C5%82anie/#findComment-234764
Udostępnij na innych stronach

  • 0
Spoiler

 

[ERROR] .... #!#! at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)

[ERROR] .... #!#!

[ERROR] .... #!#! Version Information:

[ERROR] .... #!#! Skript: 2.4.1 (latest)

[ERROR] .... #!#! Flavor: skriptlang-github

[ERROR] .... #!#! Date: 2019-12-22

[ERROR] .... #!#! Bukkit: 1.15.2-R0.1-SNAPSHOT

[ERROR] .... #!#! Minecraft: 1.15.2

[ERROR] .... #!#! Java: 1.8.0_212 (Eclipse OpenJ9 VM openj9-0.14.0)

[ERROR] .... #!#! OS: Linux amd64 4.15.0-55-generic

[ERROR] .... #!#!

[ERROR] .... #!#! Server platform: Paper

[ERROR] .... #!#!

[ERROR] .... #!#! Current node: null

[ERROR] .... #!#! Current item: null

[ERROR] .... #!#!

[ERROR] .... #!#! Thread: Server thread

[ERROR] .... #!#!

[ERROR] .... #!#! Language: english

[ERROR] .... #!#! Link parse mode: DISABLED

[ERROR] .... #!#!

[ERROR] .... #!#! End of Error.

[ERROR] .... #!#!

[ERROR] .... #!#!

[ERROR] .... #!#! [Skript] Severe Error:

[ERROR] .... #!#!

[ERROR] .... #!#! Something went horribly wrong with Skript.

[ERROR] .... #!#! This issue is NOT your fault! You probably can't fix it yourself, either.

[ERROR] .... #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).

[ERROR] .... #!#! Following plugins are probably related to this error in some way:

[ERROR] .... #!#! Skent

[ERROR] .... #!#! You should try disabling those plugins one by one, trying to find which one causes it.

[ERROR] .... #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.

[ERROR] .... #!#! In that case, you will be given instruction on how should you report it.

[ERROR] .... #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.

[ERROR] .... #!#! Only if the author tells you to do so, report it to Skript's issue tracker.

[ERROR] .... #!#!

[ERROR] .... #!#! Stack trace:

[ERROR] .... #!#! java.util.concurrent.CompletionException: java.lang.IllegalStateException: DeleteEvent may only be triggered synchronously.

[ERROR] .... #!#! at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273)

[ERROR] .... #!#! at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280)

[ERROR] .... #!#! at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1592)

[ERROR] .... #!#! at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1582)

[ERROR] .... #!#! at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)

[ERROR] .... #!#! at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)

[ERROR] .... #!#! at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)

[ERROR] .... #!#! at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)

[ERROR] .... #!#! Caused by: java.lang.IllegalStateException: DeleteEvent may only be triggered synchronously.

[ERROR] .... #!#! at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:549)

[ERROR] .... #!#! at com.olyno.skent.skript.events.bukkit.DeleteEvent.<init>(DeleteEvent.java:18)

[ERROR] .... #!#! at com.olyno.skent.skript.effects.EffDeleteFileDir.lambda$execute$0(EffDeleteFileDir.java:52)

[ERROR] .... #!#! at com.olyno.skent.skript.effects.EffDeleteFileDir$$Lambda$4978.000000009DF514D0.run(Unknown Source)

[ERROR] .... #!#! at com.olyno.skent.util.AsyncEffect.lambda$executeCode$1(AsyncEffect.java:44)

[ERROR] .... #!#! at com.olyno.skent.util.AsyncEffect$$Lambda$4980.000000009DFBFE40.get(Unknown Source)

[ERROR] .... #!#! at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1590)

[ERROR] .... #!#! at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1582)

[ERROR] .... #!#! at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)

[ERROR] .... #!#! at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)

[ERROR] .... #!#! at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)

[ERROR] .... #!#! at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)

[ERROR] .... #!#!

[ERROR] .... #!#! Version Information:

[ERROR] .... #!#! Skript: 2.4.1 (latest)

[ERROR] .... #!#! Flavor: skriptlang-github

[ERROR] .... #!#! Date: 2019-12-22

[ERROR] .... #!#! Bukkit: 1.15.2-R0.1-SNAPSHOT

[ERROR] .... #!#! Minecraft: 1.15.2

[ERROR] .... #!#! Java: 1.8.0_212 (Eclipse OpenJ9 VM openj9-0.14.0)

[ERROR] .... #!#! OS: Linux amd64 4.15.0-55-generic

[ERROR] .... #!#!

[ERROR] .... #!#! Server platform: Paper

[ERROR] .... #!#!

[ERROR] .... #!#! Current node: null

[ERROR] .... #!#! Current item: null

[ERROR] .... #!#!

[ERROR] .... #!#! Thread: Server thread

[ERROR] .... #!#!

[ERROR] .... #!#! Language: english

[ERROR] .... #!#! Link parse mode: DISABLED

[ERROR] .... #!#!

[ERROR] .... #!#! End of Error.

[ERROR] .... #!#!

[ERROR] .... #!#!

[ERROR] .... #!#! [Skript] Severe Error:

[ERROR] .... #!#!

[ERROR] .... #!#! Something went horribly wrong with Skript.

[ERROR] .... #!#! This issue is NOT your fault! You probably can't fix it yourself, either.

[ERROR] .... #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).

[ERROR] .... #!#! Following plugins are probably related to this error in some way:

[ERROR] .... #!#! Skent

[ERROR] .... #!#! You should try disabling those plugins one by one, trying to find which one causes it.

[ERROR] .... #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.

[ERROR] .... #!#! In that case, you will be given instruction on how should you report it.

[ERROR] .... #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.

[ERROR] .... #!#! Only if the author tells you to do so, report it to Skript's issue tracker.

[ERROR] .... #!#!

[ERROR] .... #!#! Stack trace:

[ERROR] .... #!#! java.util.concurrent.CompletionException: java.lang.IllegalStateException: DeleteEvent may only be triggered synchronously.

[ERROR] .... #!#! at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273)

[ERROR] .... #!#! at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280)

[ERROR] .... #!#! at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1592)

[ERROR] .... #!#! at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1582)

[ERROR] .... #!#! at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)

[ERROR] .... #!#! at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)

[ERROR] .... #!#! at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)

[ERROR] .... #!#! at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)

[ERROR] .... #!#! Caused by: java.lang.IllegalStateException: DeleteEvent may only be triggered synchronously.

[ERROR] .... #!#! at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:549)

[ERROR] .... #!#! at com.olyno.skent.skript.events.bukkit.DeleteEvent.<init>(DeleteEvent.java:18)

[ERROR] .... #!#! at com.olyno.skent.skript.effects.EffDeleteFileDir.lambda$execute$0(EffDeleteFileDir.java:52)

[ERROR] .... #!#! at com.olyno.skent.skript.effects.EffDeleteFileDir$$Lambda$4978.000000009DF514D0.run(Unknown Source)

[ERROR] .... #!#! at com.olyno.skent.util.AsyncEffect.lambda$executeCode$1(AsyncEffect.java:44)

[ERROR] .... #!#! at com.olyno.skent.util.AsyncEffect$$Lambda$4980.000000009DFBFE40.get(Unknown Source)

[ERROR] .... #!#! at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1590)

[ERROR] .... #!#! at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1582)

[ERROR] .... #!#! at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)

[ERROR] .... #!#! at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)

[ERROR] .... #!#! at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)

[ERROR] .... #!#! at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)

[ERROR] .... #!#!

[ERROR] .... #!#! Version Information:

[ERROR] .... #!#! Skript: 2.4.1 (latest)

[ERROR] .... #!#! Flavor: skriptlang-github

[ERROR] .... #!#! Date: 2019-12-22

[ERROR] .... #!#! Bukkit: 1.15.2-R0.1-SNAPSHOT

[ERROR] .... #!#! Minecraft: 1.15.2

[ERROR] .... #!#! Java: 1.8.0_212 (Eclipse OpenJ9 VM openj9-0.14.0)

[ERROR] .... #!#! OS: Linux amd64 4.15.0-55-generic

[ERROR] .... #!#!

[ERROR] .... #!#! Server platform: Paper

[ERROR] .... #!#!

[ERROR] .... #!#! Current node: null

[ERROR] .... #!#! Current item: null

[ERROR] .... #!#!

[ERROR] .... #!#! Thread: Server thread

[ERROR] .... #!#!

[ERROR] .... #!#! Language: english

[ERROR] .... #!#! Link parse mode: DISABLED

[ERROR] .... #!#!

[ERROR] .... #!#! End of Error.

[ERROR] .... #!#!

[ERROR] .... #!#!

[ERROR] .... #!#! [Skript] Severe Error:

[ERROR] .... #!#!

[ERROR] .... #!#! Something went horribly wrong with Skript.

[ERROR] .... #!#! This issue is NOT your fault! You probably can't fix it yourself, either.

[ERROR] .... #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).

[ERROR] .... #!#! Following plugins are probably related to this error in some way:

[ERROR] .... #!#! Skent

[ERROR] .... #!#! You should try disabling those plugins one by one, trying to find which one causes it.

[ERROR] .... #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.

[ERROR] .... #!#! In that case, you will be given instruction on how should you report it.

[ERROR] .... #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.

[ERROR] .... #!#! Only if the author tells you to do so, report it to Skript's issue tracker.

[ERROR] .... #!#!

[ERROR] .... #!#! Stack trace:

[ERROR] .... #!#! java.util.concurrent.CompletionException: java.lang.IllegalStateException: DeleteEvent may only be triggered synchronously.

[ERROR] .... #!#! at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273)

[ERROR] .... #!#! at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280)

[ERROR] .... #!#! at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1592)

[ERROR] .... #!#! at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1582)

[ERROR] .... #!#! at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)

[ERROR] .... #!#! at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)

[ERROR] .... #!#! at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)

[ERROR] .... #!#! at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)

[ERROR] .... #!#! Caused by: java.lang.IllegalStateException: DeleteEvent may only be triggered synchronously.

[ERROR] .... #!#! at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:549)

[ERROR] .... #!#! at com.olyno.skent.skript.events.bukkit.DeleteEvent.<init>(DeleteEvent.java:18)

[ERROR] .... #!#! at com.olyno.skent.skript.effects.EffDeleteFileDir.lambda$execute$0(EffDeleteFileDir.java:52)

[ERROR] .... #!#! at com.olyno.skent.skript.effects.EffDeleteFileDir$$Lambda$4978.000000009DF514D0.run(Unknown Source)

[ERROR] .... #!#! at com.olyno.skent.util.AsyncEffect.lambda$executeCode$1(AsyncEffect.java:44)

[ERROR] .... #!#! at com.olyno.skent.util.AsyncEffect$$Lambda$4980.000000009DFBFE40.get(Unknown Source)

[ERROR] .... #!#! at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1590)

[ERROR] .... #!#! at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1582)

[ERROR] .... #!#! at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)

[ERROR] .... #!#! at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)

[ERROR] .... #!#! at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)

[ERROR] .... #!#! at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)

[ERROR] .... #!#!

[ERROR] .... #!#! Version Information:

[ERROR] .... #!#! Skript: 2.4.1 (latest)

[ERROR] .... #!#! Flavor: skriptlang-github

[ERROR] .... #!#! Date: 2019-12-22

[ERROR] .... #!#! Bukkit: 1.15.2-R0.1-SNAPSHOT

[ERROR] .... #!#! Minecraft: 1.15.2

[ERROR] .... #!#! Java: 1.8.0_212 (Eclipse OpenJ9 VM openj9-0.14.0)

[ERROR] .... #!#! OS: Linux amd64 4.15.0-55-generic

[ERROR] .... #!#!

[ERROR] .... #!#! Server platform: Paper

[ERROR] .... #!#!

[ERROR] .... #!#! Current node: null

[ERROR] .... #!#! Current item: null

[ERROR] .... #!#!

[ERROR] .... #!#! Thread: Server thread

[ERROR] .... #!#!

[ERROR] .... #!#! Language: english

[ERROR] .... #!#! Link parse mode: DISABLED

[ERROR] .... #!#!

[ERROR] .... #!#! End of Error.

[ERROR] .... #!#!

 

 

Coś takiego wymyśliłem i jest "<none> and Gods/NazwaZmieniona :D and <none>

command alFiles:
	trigger:
		set {_name::*} to all the files from directory "Gods/" 
		loop {_name::*}:
			set {_t::*} to "%loop-value%"
			set {_firstFiles1} to file name of {_t::1}
			set {_firstFiles2} to file name of {_t::2}
			replace all "A" and "a" and "b" and "c" in {_t::*} with "s"
		send "%{_firstFiles1}% and %{_t::1}% and %{_t::2}%"
#			send "%{_t::*}%"
			

 

Edytowane przez Misio12320
Odnośnik do komentarza
https://skript.pl/temat/36806-doko%C5%84czenie-kodu-na-usuwanie-i-wysy%C5%82anie/#findComment-234797
Udostępnij na innych stronach

  • 0
3 godziny temu, Misio12320 napisał:

Coś takiego wymyśliłem i jest "<none> and Gods/NazwaZmieniona :D and <none>

chcesz aby wysyłało wiadomość z nazwą pliku tak? i potem go usuwało tak?

command alFiles:
	trigger:
		set {_name::*} to all the files from directory "Gods/" 
		loop {_name::*}:
			send "%loop-value%"

zobac czy wysyła nazwy plików

Odnośnik do komentarza
https://skript.pl/temat/36806-doko%C5%84czenie-kodu-na-usuwanie-i-wysy%C5%82anie/#findComment-234804
Udostępnij na innych stronach

  • 0
Godzinę temu, xAxee napisał:

 tak?


command alFiles:
	trigger:
		set {_name::*} to all the files from directory "Gods/" 
		loop {_name::*}:
			send "%loop-value%"

 

No wysyła i powinno wybrać 1szy plik i go wysłać i usunąć i następny 

Odnośnik do komentarza
https://skript.pl/temat/36806-doko%C5%84czenie-kodu-na-usuwanie-i-wysy%C5%82anie/#findComment-234814
Udostępnij na innych stronach

  • 0
3 minuty temu, Misio12320 napisał:

No wysyła i powinno wybrać 1szy plik i go wysłać i usunąć i następny 

command alFiles:
	trigger:
		set {_name::*} to all the files from directory "Gods/" 
		loop {_name::*}:
			send "%loop-value%"
			delete file "Gods/%loop-value%"

wysyła samą nazwe czy z folderem?

Odnośnik do komentarza
https://skript.pl/temat/36806-doko%C5%84czenie-kodu-na-usuwanie-i-wysy%C5%82anie/#findComment-234815
Udostępnij na innych stronach

  • 0
Spoiler

[ERROR] .... #!#! at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)

[ERROR] .... #!#!

[ERROR] .... #!#! Version Information:

[ERROR] .... #!#! Skript: 2.4.1 (latest)

[ERROR] .... #!#! Flavor: skriptlang-github

[ERROR] .... #!#! Date: 2019-12-22

[ERROR] .... #!#! Bukkit: 1.15.2-R0.1-SNAPSHOT

[ERROR] .... #!#! Minecraft: 1.15.2

[ERROR] .... #!#! Java: 1.8.0_212 (Eclipse OpenJ9 VM openj9-0.14.0)

[ERROR] .... #!#! OS: Linux amd64 4.15.0-55-generic

[ERROR] .... #!#!

[ERROR] .... #!#! Server platform: Paper

[ERROR] .... #!#!

[ERROR] .... #!#! Current node: null

[ERROR] .... #!#! Current item: null

[ERROR] .... #!#!

[ERROR] .... #!#! Thread: Server thread

[ERROR] .... #!#!

[ERROR] .... #!#! Language: english

[ERROR] .... #!#! Link parse mode: DISABLED

[ERROR] .... #!#!

[ERROR] .... #!#! End of Error.

[ERROR] .... #!#!

[ERROR] .... #!#!

[ERROR] .... #!#! [Skript] Severe Error:

[ERROR] .... #!#!

[ERROR] .... #!#! Something went horribly wrong with Skript.

[ERROR] .... #!#! This issue is NOT your fault! You probably can't fix it yourself, either.

[ERROR] .... #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).

[ERROR] .... #!#! Following plugins are probably related to this error in some way:

[ERROR] .... #!#! Skent

[ERROR] .... #!#! You should try disabling those plugins one by one, trying to find which one causes it.

[ERROR] .... #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.

[ERROR] .... #!#! In that case, you will be given instruction on how should you report it.

[ERROR] .... #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.

[ERROR] .... #!#! Only if the author tells you to do so, report it to Skript's issue tracker.

[ERROR] .... #!#!

[ERROR] .... #!#! Stack trace:

[ERROR] .... #!#! java.util.concurrent.CompletionException: java.lang.IllegalStateException: DeleteEvent may only be triggered synchronously.

[ERROR] .... #!#! at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273)

[ERROR] .... #!#! at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280)

[ERROR] .... #!#! at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1592)

[ERROR] .... #!#! at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1582)

[ERROR] .... #!#! at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)

[ERROR] .... #!#! at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)

[ERROR] .... #!#! at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)

[ERROR] .... #!#! at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)

[ERROR] .... #!#! Caused by: java.lang.IllegalStateException: DeleteEvent may only be triggered synchronously.

[ERROR] .... #!#! at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:549)

[ERROR] .... #!#! at com.olyno.skent.skript.events.bukkit.DeleteEvent.<init>(DeleteEvent.java:18)

[ERROR] .... #!#! at com.olyno.skent.skript.effects.EffDeleteFileDir.lambda$execute$0(EffDeleteFileDir.java:52)

[ERROR] .... #!#! at com.olyno.skent.skript.effects.EffDeleteFileDir$$Lambda$4809.00000000F510B0C0.run(Unknown Source)

[ERROR] .... #!#! at com.olyno.skent.util.AsyncEffect.lambda$executeCode$1(AsyncEffect.java:44)

[ERROR] .... #!#! at com.olyno.skent.util.AsyncEffect$$Lambda$4811.00000000F510C170.get(Unknown Source)

[ERROR] .... #!#! at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1590)

[ERROR] .... #!#! at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1582)

[ERROR] .... #!#! at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)

[ERROR] .... #!#! at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)

[ERROR] .... #!#! at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)

[ERROR] .... #!#! at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)

[ERROR] .... #!#!

[ERROR] .... #!#! Version Information:

[ERROR] .... #!#! Skript: 2.4.1 (latest)

[ERROR] .... #!#! Flavor: skriptlang-github

[ERROR] .... #!#! Date: 2019-12-22

[ERROR] .... #!#! Bukkit: 1.15.2-R0.1-SNAPSHOT

[ERROR] .... #!#! Minecraft: 1.15.2

[ERROR] .... #!#! Java: 1.8.0_212 (Eclipse OpenJ9 VM openj9-0.14.0)

[ERROR] .... #!#! OS: Linux amd64 4.15.0-55-generic

[ERROR] .... #!#!

[ERROR] .... #!#! Server platform: Paper

[ERROR] .... #!#!

[ERROR] .... #!#! Current node: null

[ERROR] .... #!#! Current item: null

[ERROR] .... #!#!

[ERROR] .... #!#! Thread: Server thread

[ERROR] .... #!#!

[ERROR] .... #!#! Language: english

[ERROR] .... #!#! Link parse mode: DISABLED

[ERROR] .... #!#!

[ERROR] .... #!#! End of Error.

[ERROR] .... #!#!

[ERROR] .... #!#!

[ERROR] .... #!#! [Skript] Severe Error:

[ERROR] .... #!#!

[ERROR] .... #!#! Something went horribly wrong with Skript.

[ERROR] .... #!#! This issue is NOT your fault! You probably can't fix it yourself, either.

[ERROR] .... #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).

[ERROR] .... #!#! Following plugins are probably related to this error in some way:

[ERROR] .... #!#! Skent

[ERROR] .... #!#! You should try disabling those plugins one by one, trying to find which one causes it.

[ERROR] .... #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.

[ERROR] .... #!#! In that case, you will be given instruction on how should you report it.

[ERROR] .... #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.

[ERROR] .... #!#! Only if the author tells you to do so, report it to Skript's issue tracker.

[ERROR] .... #!#!

[ERROR] .... #!#! Stack trace:

[ERROR] .... #!#! java.util.concurrent.CompletionException: java.lang.IllegalStateException: DeleteEvent may only be triggered synchronously.

[ERROR] .... #!#! at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273)

[ERROR] .... #!#! at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280)

[ERROR] .... #!#! at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1592)

[ERROR] .... #!#! at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1582)

[ERROR] .... #!#! at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)

[ERROR] .... #!#! at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)

[ERROR] .... #!#! at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)

[ERROR] .... #!#! at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)

[ERROR] .... #!#! Caused by: java.lang.IllegalStateException: DeleteEvent may only be triggered synchronously.

[ERROR] .... #!#! at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:549)

[ERROR] .... #!#! at com.olyno.skent.skript.events.bukkit.DeleteEvent.<init>(DeleteEvent.java:18)

[ERROR] .... #!#! at com.olyno.skent.skript.effects.EffDeleteFileDir.lambda$execute$0(EffDeleteFileDir.java:52)

[ERROR] .... #!#! at com.olyno.skent.skript.effects.EffDeleteFileDir$$Lambda$4809.00000000F510B0C0.run(Unknown Source)

[ERROR] .... #!#! at com.olyno.skent.util.AsyncEffect.lambda$executeCode$1(AsyncEffect.java:44)

[ERROR] .... #!#! at com.olyno.skent.util.AsyncEffect$$Lambda$4811.00000000F510C170.get(Unknown Source)

[ERROR] .... #!#! at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1590)

[ERROR] .... #!#! at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1582)

[ERROR] .... #!#! at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)

[ERROR] .... #!#! at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)

[ERROR] .... #!#! at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)

[ERROR] .... #!#! at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)

[ERROR] .... #!#!

[ERROR] .... #!#! Version Information:

[ERROR] .... #!#! Skript: 2.4.1 (latest)

[ERROR] .... #!#! Flavor: skriptlang-github

[ERROR] .... #!#! Date: 2019-12-22

[ERROR] .... #!#! Bukkit: 1.15.2-R0.1-SNAPSHOT

[ERROR] .... #!#! Minecraft: 1.15.2

[ERROR] .... #!#! Java: 1.8.0_212 (Eclipse OpenJ9 VM openj9-0.14.0)

[ERROR] .... #!#! OS: Linux amd64 4.15.0-55-generic

[ERROR] .... #!#!

[ERROR] .... #!#! Server platform: Paper

[ERROR] .... #!#!

[ERROR] .... #!#! Current node: null

[ERROR] .... #!#! Current item: null

[ERROR] .... #!#!

[ERROR] .... #!#! Thread: Server thread

[ERROR] .... #!#!

[ERROR] .... #!#! Language: english

[ERROR] .... #!#! Link parse mode: DISABLED

[ERROR] .... #!#!

[ERROR] .... #!#! End of Error.

[ERROR] .... #!#!

[ERROR] .... #!#!

[ERROR] .... #!#! [Skript] Severe Error:

[ERROR] .... #!#!

[ERROR] .... #!#! Something went horribly wrong with Skript.

[ERROR] .... #!#! This issue is NOT your fault! You probably can't fix it yourself, either.

[ERROR] .... #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).

[ERROR] .... #!#! Following plugins are probably related to this error in some way:

[ERROR] .... #!#! Skent

[ERROR] .... #!#! You should try disabling those plugins one by one, trying to find which one causes it.

[ERROR] .... #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.

[ERROR] .... #!#! In that case, you will be given instruction on how should you report it.

[ERROR] .... #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.

[ERROR] .... #!#! Only if the author tells you to do so, report it to Skript's issue tracker.

[ERROR] .... #!#!

[ERROR] .... #!#! Stack trace:

[ERROR] .... #!#! java.util.concurrent.CompletionException: java.lang.IllegalStateException: DeleteEvent may only be triggered synchronously.

[ERROR] .... #!#! at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273)

[ERROR] .... #!#! at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280)

[ERROR] .... #!#! at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1592)

[ERROR] .... #!#! at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1582)

[ERROR] .... #!#! at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)

[ERROR] .... #!#! at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)

[ERROR] .... #!#! at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)

[ERROR] .... #!#! at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)

[ERROR] .... #!#! Caused by: java.lang.IllegalStateException: DeleteEvent may only be triggered synchronously.

[ERROR] .... #!#! at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:549)

[ERROR] .... #!#! at com.olyno.skent.skript.events.bukkit.DeleteEvent.<init>(DeleteEvent.java:18)

[ERROR] .... #!#! at com.olyno.skent.skript.effects.EffDeleteFileDir.lambda$execute$0(EffDeleteFileDir.java:52)

[ERROR] .... #!#! at com.olyno.skent.skript.effects.EffDeleteFileDir$$Lambda$4809.00000000F510B0C0.run(Unknown Source)

[ERROR] .... #!#! at com.olyno.skent.util.AsyncEffect.lambda$executeCode$1(AsyncEffect.java:44)

[ERROR] .... #!#! at com.olyno.skent.util.AsyncEffect$$Lambda$4811.00000000F510C170.get(Unknown Source)

[ERROR] .... #!#! at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1590)

[ERROR] .... #!#! at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1582)

[ERROR] .... #!#! at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)

[ERROR] .... #!#! at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)

[ERROR] .... #!#! at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)

[ERROR] .... #!#! at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)

[ERROR] .... #!#!

[ERROR] .... #!#! Version Information:

[ERROR] .... #!#! Skript: 2.4.1 (latest)

[ERROR] .... #!#! Flavor: skriptlang-github

[ERROR] .... #!#! Date: 2019-12-22

[ERROR] .... #!#! Bukkit: 1.15.2-R0.1-SNAPSHOT

[ERROR] .... #!#! Minecraft: 1.15.2

[ERROR] .... #!#! Java: 1.8.0_212 (Eclipse OpenJ9 VM openj9-0.14.0)

[ERROR] .... #!#! OS: Linux amd64 4.15.0-55-generic

[ERROR] .... #!#!

[ERROR] .... #!#! Server platform: Paper

[ERROR] .... #!#!

[ERROR] .... #!#! Current node: null

[ERROR] .... #!#! Current item: null

[ERROR] .... #!#!

[ERROR] .... #!#! Thread: Server thread

[ERROR] .... #!#!

[ERROR] .... #!#! Language: english

[ERROR] .... #!#! Link parse mode: DISABLED

[ERROR] .... #!#!

[ERROR] .... #!#! End of Error.

[ERROR] .... #!#!

Wysyła z folderem. jak mozesz to weź to zrób tak, by replace też działał.. I tak jak pisałem "Set {_t::1} to first file of {_t}".. wrr 😡

Odnośnik do komentarza
https://skript.pl/temat/36806-doko%C5%84czenie-kodu-na-usuwanie-i-wysy%C5%82anie/#findComment-234848
Udostępnij na innych stronach

Dołącz do dyskusji

Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.

Nieaktywny
Odpowiedz na pytanie...

×   Wklejono zawartość z formatowaniem.   Usuń formatowanie

  Dozwolonych jest tylko 75 emoji.

×   Odnośnik został automatycznie osadzony.   Przywróć wyświetlanie jako odnośnik

×   Przywrócono poprzednią zawartość.   Wyczyść edytor

×   Nie możesz bezpośrednio wkleić grafiki. Dodaj lub załącz grafiki z adresu URL.

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...