Skocz do zawartości

Pytanie





PYTANIE

Cześć, wiecie czemu nie działa ten Skrypt? Gdy wpisze komendę wyskakuje mi to co jest na zdjęciu, w gui nic nie ma po otworzeniu

ss.png

KOD

 

command /ranga [<player>]:

   trigger:

    if player has permission "worldedit.*":

      if arg-1 is not set: send "&7>>&c Poprawne użycie:&f /ranga [nick]"

      stop

    else:

      open virtual chest inventory with size 6 named "&6&lRangi" to player

      format gui slot 10 of player with netherite block named "&4Właściciel" to run:

        execute console command "lp user %arg-1% parent set wlasciciel"

        send "&fOd teraz Twoja ranga to:&4 Właściciel" to arg-1

      format gui slot 12 of player with emerald block named "&4Technik" to run:

        execute player command "lp user %arg-1% parent set wspolwlasciciel"

        send "&fOd teraz Twoja ranga to:&4 Technik" to arg-1

      format gui slot 14 of player with diamond block named "&cAdmin" to run:

        execute player command "lp user %arg-1% parent set admin"

        send "&fOd teraz Twoja ranga to:&c Admin" to arg-1

      format gui slot 16 of player with gold block named "&cKidAdmin" to run:

        execute player command "lp user %arg-1% parent set kidadmin"

        send "&fOd teraz Twoja ranga to:&c KidAdmin" to arg-1

      format gui slot 28 of player with lapis block named "&2Mod" to run:

        execute player command "lp user %arg-1% parent set mod"

        send "&fOd teraz Twoja ranga to:&2 Mod" to arg-1

      format gui slot 30 of player with iron block named "&2KidMod" to run:

        execute player command "lp user %arg-1% parent set kidmod"

        send "&fOd teraz Twoja ranga to:&2 KidMod" to arg-1

      format gui slot 32 of player with redstone block named "&2Budowniczy" to run:

        execute player command "lp user %arg-1% parent set budowniczy"

        send "&fOd teraz Twoja ranga to:&2 Budowniczy" to arg-1

      format gui slot 34 of player with netherite ingot named "&9Sponsor" to run:

        execute player command "lp user %arg-1% parent set sponsor"

        send "&fOd teraz Twoja ranga to:&5 Sponsor" to arg-1

      format gui slot 46 of player with netherite ingot named "&9Sponsor &5&l30D" to run:

        execute player command "lp user %arg-1% parent addtemp sponsor 30d"

        send "&fOd teraz Twoja ranga to:&5 Sponsor" to arg-1

      format gui slot 48 of player with diamond named "&6SVip" to run:

        execute player command "lp user %arg-1% parent set SVip"

        send "&fOd teraz Twoja ranga to:&6 SVip" to arg-1

      format gui slot 50 of player with gold ingot named "&eVip" to run:

        execute player command "lp user %arg-1% parent set Vip"

        send "&fOd teraz Twoja ranga to:&e Vip" to arg-1

      format gui slot 52 of player with gold ingot named "&eVip &5&l30D" to run:

        execute player command "lp user %arg-1% parent addtemp Vip 30d"

        send "&fOd teraz Twoja ranga to:&e Vip" to arg-1

LOGI

 

[16:08:28] [Server thread/INFO]: PanEvenciarz issued server command: /ranga PanEvenciarz

[16:08:28] [Server thread/INFO]: PanEvenciarz [1a12fa10-20f0-349a-a3e3-66c3b0d2886a]: /ranga PanEvenciarz

[16:08:28] [Server thread/ERROR]: #!#!

[16:08:28] [Server thread/ERROR]: #!#! [Skript] Severe Error:

[16:08:28] [Server thread/ERROR]: #!#!

[16:08:28] [Server thread/ERROR]: #!#! Something went horribly wrong with Skript.

[16:08:28] [Server thread/ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.

[16:08:28] [Server thread/ERROR]: #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).

[16:08:28] [Server thread/ERROR]: #!#! Here is full list of them:

[16:08:28] [Server thread/ERROR]: #!#! TuSKe v1.8.2 (github.com/Tuke-Nuke/TuSKe) SkBee v1.10.2 (https://github.com/ShaneBeee/SkBee) SkQuery v4.1.4 SharpSK v1.6.3 DiscordSRV v1.22.0 (https://github.com/DiscordSRV/DiscordSRV) [16:08:28] [Server thread/ERROR]: #!#! We could not identify which of those are specially related, so this might also be Skript issue.

[16:08:28] [Server thread/ERROR]: #!#! You should try disabling those plugins one by one, trying to find which one causes it.

[16:08:28] [Server thread/ERROR]: #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.

[16:08:28] [Server thread/ERROR]: #!#! In that case, you will be given instruction on how should you report it.

[16:08:28] [Server thread/ERROR]: #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.

[16:08:28] [Server thread/ERROR]: #!#! Only if the author tells you to do so, report it to Skript's issue tracker.

[16:08:28] [Server thread/ERROR]: #!#!

[16:08:28] [Server thread/ERROR]: #!#! Stack trace:

[16:08:28] [Server thread/ERROR]: #!#! java.lang.ClassCastException: java.util.HashMap cannot be cast to java.util.WeakHashMap

[16:08:28] [Server thread/ERROR]: #!#! at com.github.tukenuke.tuske.util.VariableUtil.<init>(VariableUtil.java:24)

[16:08:28] [Server thread/ERROR]: #!#! at com.github.tukenuke.tuske.util.VariableUtil.getInstance(VariableUtil.java:17)

[16:08:28] [Server thread/ERROR]: #!#! at com.github.tukenuke.tuske.sections.gui.EffFormatGUI.execute(EffFormatGUI.java:141)

[16:08:28] [Server thread/ERROR]: #!#! at com.github.tukenuke.tuske.util.EffectSection.check(EffectSection.java:54)

[16:08:28] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.Condition.run(Condition.java:55)

[16:08:28] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.Conditional.walk(Conditional.java:50) [16:08:28] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:88)

[16:08:28] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.Trigger.execute(Trigger.java:56)

[16:08:28] [Server thread/ERROR]: #!#! at ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:291)

[16:08:28] [Server thread/ERROR]: #!#! at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:250)

[16:08:28] [Server thread/ERROR]: #!#! at ch.njol.skript.command.Commands.handleCommand(Commands.java:248)

[16:08:28] [Server thread/ERROR]: #!#! at ch.njol.skript.command.Commands$1.onPlayerCommand(Commands.java:165)

[16:08:28] [Server thread/ERROR]: #!#! at com.destroystokyo.paper.event.executor.MethodHandleEventExecutor.execute(MethodHandleEventExecutor.java:40)

[16:08:28] [Server thread/ERROR]: #!#! at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80)

[16:08:28] [Server thread/ERROR]: #!#! at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70)

[16:08:28] [Server thread/ERROR]: #!#! at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:607)

[16:08:28] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_16_R3.PlayerConnection.handleCommand(PlayerConnection.java:2133)

[16:08:28] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_16_R3.PlayerConnection.c(PlayerConnection.java:1956)

[16:08:28] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_16_R3.PlayerConnection.a(PlayerConnection.java:1909)

[16:08:28] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_16_R3.PacketPlayInChat.a(PacketPlayInChat.java:47)

[16:08:28] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_16_R3.PacketPlayInChat.a(PacketPlayInChat.java:5)

[16:08:28] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_16_R3.PlayerConnectionUtils.lambda$ensureMainThread$1(PlayerConnectionUtils.java:43)

[16:08:28] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_16_R3.TickTask.run(SourceFile:18)

[16:08:28] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.executeTask(IAsyncTaskHandler.java:136)

[16:08:28] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_16_R3.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23)

[16:08:28] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.executeNext(IAsyncTaskHandler.java:109)

[16:08:28] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_16_R3.MinecraftServer.bb(MinecraftServer.java:1212)

[16:08:28] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_16_R3.MinecraftServer.executeNext(MinecraftServer.java:1205)

[16:08:28] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.awaitTasks(IAsyncTaskHandler.java:119)

[16:08:28] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_16_R3.MinecraftServer.sleepForTick(MinecraftServer.java:1181) [16:08:28] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1025)

[16:08:28] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:177)

[16:08:28] [Server thread/ERROR]: #!#! at java.lang.Thread.run(Thread.java:748) [16:08:28] [Server thread/ERROR]: #!#!

[16:08:28] [Server thread/ERROR]: #!#! Version Information:

[16:08:28] [Server thread/ERROR]: #!#! Skript: 2.5.3 (latest)

[16:08:28] [Server thread/ERROR]: #!#! Flavor: skriptlang-github

[16:08:28] [Server thread/ERROR]: #!#! Date: 2020-12-11

[16:08:28] [Server thread/ERROR]: #!#! Bukkit: 1.16.5-R0.1-SNAPSHOT

[16:08:28] [Server thread/ERROR]: #!#! Minecraft: 1.16.5

[16:08:28] [Server thread/ERROR]: #!#! Java: 1.8.0_201 (Java HotSpot(TM) 64-Bit Server VM 25.201-b09)

[16:08:28] [Server thread/ERROR]: #!#! OS: Linux amd64 5.4.0-65-generic [16:08:28] [Server thread/ERROR]: #!#!

[16:08:28] [Server thread/ERROR]: #!#! Server platform: Paper [16:08:28] [Server thread/ERROR]: #!#!

[16:08:28] [Server thread/ERROR]: #!#! Current node: null

[16:08:28] [Server thread/ERROR]: #!#! Current item: format a gui slot [[long:10]] of the player with ([[itemtype:netherite block]] named "W?a?ciciel" >> ch.njol.skript.classes.data.DefaultConverters$14@2c94e8eb: itemtype -> itemstack)

[16:08:28] [Server thread/ERROR]: #!#! Current trigger: command /ranga (simple event) (LP.sk, line -1) [16:08:28] [Server thread/ERROR]: #!#!

[16:08:28] [Server thread/ERROR]: #!#! Thread: Server thread

[16:08:28] [Server thread/ERROR]: #!#!

[16:08:28] [Server thread/ERROR]: #!#! Language: english

[16:08:28] [Server thread/ERROR]: #!#! Link parse mode: STRICT [16:08:28]

[Server thread/ERROR]: #!#! [16:08:28] [Server thread/ERROR]: #!#! End of Error.

[16:08:28] [Server thread/ERROR]: #!#!

Edytowane przez PanEvenciarz
Błąd
Odnośnik do komentarza
https://skript.pl/temat/48475-gui-luckperms/
Udostępnij na innych stronach

1 odpowiedź na to pytanie

Rekomendowane odpowiedzi

  • 0

TuSKe ma zepsute użycie run w ten sposób. Zamiast tego spróbuj użyć funkcji:
 

format gui slot <slot> of player with <item> to close then run function jakasfunkcja()

Wtedy tworzysz sobie funkcję, np.:

function nadajRange(gracz: player, cel: player, ranga: text, nazwa: text):
	execute {_gracz} command "lp user %{_cel}% parent set %{_ranga}%"
	send "&fOd teraz Twoja ranga to: %{_nazwa}%" to {_cel}

i formatujesz slot w ten sposób:

format gui slot 1 of player with netherite block named "&4Wlasciciel" to close then run function nadajRange(player, arg 1, "wlasciciel", "&4Wlasciciel")

 

Odnośnik do komentarza
https://skript.pl/temat/48475-gui-luckperms/#findComment-302503
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ę...