Skocz do zawartości
  • 0

Co to za bład?


jndooo

Pytanie

Error executing task
java.util.concurrent.ExecutionException: java.lang.AssertionError: TRAP
	at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_191]
	at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_191]
	at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:47) [spigot_1.12.2.jar:git-Spigot-642f6d2-6103339]
	at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:748) [spigot_1.12.2.jar:git-Spigot-642f6d2-6103339]
	at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:406) [spigot_1.12.2.jar:git-Spigot-642f6d2-6103339]
	at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:679) [spigot_1.12.2.jar:git-Spigot-642f6d2-6103339]
	at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:577) [spigot_1.12.2.jar:git-Spigot-642f6d2-6103339]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_191]
Caused by: java.lang.AssertionError: TRAP
	at net.minecraft.server.v1_12_R1.ItemStack.F(ItemStack.java:100) ~[spigot_1.12.2.jar:git-Spigot-642f6d2-6103339]
	at net.minecraft.server.v1_12_R1.ItemStack.setCount(ItemStack.java:839) ~[spigot_1.12.2.jar:git-Spigot-642f6d2-6103339]
	at net.minecraft.server.v1_12_R1.PlayerInteractManager.a(PlayerInteractManager.java:413) ~[spigot_1.12.2.jar:git-Spigot-642f6d2-6103339]
	at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:1004) ~[spigot_1.12.2.jar:git-Spigot-642f6d2-6103339]
	at net.minecraft.server.v1_12_R1.PacketPlayInBlockPlace.a(PacketPlayInBlockPlace.java:26) ~[spigot_1.12.2.jar:git-Spigot-642f6d2-6103339]
	at net.minecraft.server.v1_12_R1.PacketPlayInBlockPlace.a(PacketPlayInBlockPlace.java:1) ~[spigot_1.12.2.jar:git-Spigot-642f6d2-6103339]
	at net.minecraft.server.v1_12_R1.PlayerConnectionUtils$1.run(SourceFile:13) ~[spigot_1.12.2.jar:git-Spigot-642f6d2-6103339]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_191]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_191]
	at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46) ~[spigot_1.12.2.jar:git-Spigot-642f6d2-6103339]
	... 5 more

Dzieje sie gdy uzyje to

command /vdaj1 [<text>]:
	trigger:
		give 1 paper named "&6&lVOUCHER" with lore "&aVIP NA 1 DNI" to the player			
on rightclick:
	if player's tool is paper named "&6&lVOUCHER" with lore "&aVIP NA 1 DNI":
		remove 1 paper named "&6&lVOUCHER" with lore "&aVIP NA 1 DNI" from player
		execute console command "setrank %player% VIP 1 days"
		send player title "" with subtitle "&7Gratulacje Wykorzystales &6&lVOUCHER!"
		broadcast " &7» &7Gracz %player% wykorzystal voucher na &aVIPa &71dzien."
		stop 

 

Odnośnik do komentarza
https://skript.pl/temat/35012-co-to-za-b%C5%82ad/
Udostępnij na innych stronach

4 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

Zamiast

send player title "" with subtitle "&7Gratulacje Wykorzystales &6&lVOUCHER!"

daj to

send player title "" with subtitle "&7Gratulacje Wykorzystales &6&lVOUCHER!" for 2.5 seconds

Te "2.5 seconds" jest losową liczbą możesz tam dać co chcesz (oczywiście tylko liczby.).

Odnośnik do komentarza
https://skript.pl/temat/35012-co-to-za-b%C5%82ad/#findComment-224980
Udostępnij na innych stronach

  • 0
7 minut temu, TakiJakTy napisał:

Zamiast


send player title "" with subtitle "&7Gratulacje Wykorzystales &6&lVOUCHER!"

daj to


send player title "" with subtitle "&7Gratulacje Wykorzystales &6&lVOUCHER!" for 2.5 seconds

Te "2.5 seconds" jest losową liczbą możesz tam dać co chcesz (oczywiście tylko liczby.).

 

Godzinę temu, Sgret napisał:

Najprawdopodobniej jest to błąd z subtitlem

dziekuje panowie bo się zastanawiałem a prędzej w innym kodzie mam dobrze xD

Odnośnik do komentarza
https://skript.pl/temat/35012-co-to-za-b%C5%82ad/#findComment-224982
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

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