Skocz do zawartości
  • 0

Nie wczytuje komendy


KrisSx

Pytanie

Witam, mam taki oto kod:

command /ranga [<player>]:
	permission: *
	trigger:
		if player's name is "Kristo07":
			if player-arg is not set:
				send "&a/ranga nick"
			else:
				wait 2 ticks
				open chest with 1 row named "Ranga" to player
				wait 1 tick
				set slot 0 of player's current inventory to clay item named "&7&lGracz" with lore "&7Ustaw graczowi &8%player-arg%||&7range &lGRACZ"
				set slot 1 of player's current inventory to gold ingot named "&e&lVIP" with lore "&7Ustaw graczowi &8%player-arg%||&7range &e&lVIP"
				set slot 2 of player's current inventory to diamond named "&6&lsVIP" with lore "&7Ustaw graczowi &8%player-arg%||&7range &6&lsVIP"
				set slot 3 of player's current inventory to paper named "&b&lMini&f&lY&4&lT" with lore "&7Ustaw graczowi &8%player-arg%||&7range &b&lMini&f&lY&4&lT"
				set slot 4 of player's current inventory to paper named "&f&lY&4&lT" with lore "&7Ustaw graczowi &8%player-arg%||&7range &f&lY&4&lT"
				set slot 6 of player's current inventory to cyan dye named "&9&lSupport" with lore "&7Ustaw graczowi &8%player-arg%||&7range &9&lSupport"
				set slot 7 of player's current inventory to lime dye named "&2&lModerator" with lore "&7Ustaw graczowi &8%player-arg%||&7range &2&lModerator"
				set slot 8 of player's current inventory to red dye named "&c&lAdmin" with lore "&7Ustaw graczowi &8%player-arg%||&7range &c&lAdmin"

Niby wszystko jest dobrze, ale po dopisaniu tej części z menu (open chest i tak dalej) komenda w ogóle jakby nie istnieje. Żadnych błędów nie wywala, dodam też, że to samo dzieje się z moim skryptem na Akcesoria, wczoraj działał, a dziś po małej zmianie tekstu w lore przedmiotów nie działa.

Pomoże ktoś? ;/

Odnośnik do komentarza
Udostępnij na innych stronach

8 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
[18:53:04] [Server thread/INFO]: Kristo07 issued server command: /sk reload ranga
[18:53:04] [Server thread/ERROR]: #!#!
[18:53:04] [Server thread/ERROR]: #!#! [Skript] Severe Error:
[18:53:04] [Server thread/ERROR]: #!#! Could not load ranga.sk
[18:53:04] [Server thread/ERROR]: #!#!
[18:53:04] [Server thread/ERROR]: #!#! If you"re developing an add-on for Skript this likely means that you have done something wrong.
[18:53:04] [Server thread/ERROR]: #!#! If you"re a server admin however please go to https://github.com/bensku/Skript/issues/
[18:53:04] [Server thread/ERROR]: #!#! and check whether this error has already been reported.
[18:53:04] [Server thread/ERROR]: #!#! If not please create a new ticket with a meaningful title, copy & paste this whole error into it (or use paste service),
[18:53:04] [Server thread/ERROR]: #!#! and describe what you did before it happened and/or what you think caused the error.
[18:53:04] [Server thread/ERROR]: #!#! If you think that it"s a trigger that"s causing the error please post the trigger as well.
[18:53:04] [Server thread/ERROR]: #!#! By following this guide fixing the error should be easy and done fast.
[18:53:04] [Server thread/ERROR]: #!#!
[18:53:04] [Server thread/ERROR]: #!#! Stack trace:
[18:53:04] [Server thread/ERROR]: #!#! ch.njol.skript.SkriptAPIException: No class info found for player"
[18:53:04] [Server thread/ERROR]: #!#! at ch.njol.skript.registrations.Classes.getClassInfo(Classes.java:262)
[18:53:04] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.getExprInfo(SkriptParser.java:1417)
[18:53:04] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1138)
[18:53:04] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:219)
[18:53:04] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:174)
[18:53:04] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.Statement.parse(Statement.java:59)
[18:53:04] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:659)
[18:53:04] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.TriggerSection.(TriggerSection.java:54)
[18:53:04] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.Conditional$1.(Conditional.java:72)
[18:53:04] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.Conditional.loadElseClause(Conditional.java:72)
[18:53:04] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:718)
[18:53:04] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.TriggerSection.(TriggerSection.java:54)
[18:53:04] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.Conditional.(Conditional.java:44)
[18:53:04] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:745)
[18:53:04] [Server thread/ERROR]: #!#! at ch.njol.skript.command.Commands.loadCommand(Commands.java:465)
[18:53:04] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:409)
[18:53:04] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:243)
[18:53:04] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:267)
[18:53:04] [Server thread/ERROR]: #!#! at ch.njol.skript.SkriptCommand.onCommand(SkriptCommand.java:187)
[18:53:04] [Server thread/ERROR]: #!#! at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
[18:53:04] [Server thread/ERROR]: #!#! at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141)
[18:53:04] [Server thread/ERROR]: #!#! at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchCommand(CraftServer.java:648)
[18:53:04] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_12_R1.PlayerConnection.handleCommand(PlayerConnection.java:1397)
[18:53:04] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:1232)
[18:53:04] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:45)
[18:53:04] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:1)
[18:53:04] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_12_R1.PlayerConnectionUtils$1.run(SourceFile:13)
[18:53:04] [Server thread/ERROR]: #!#! at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[18:53:04] [Server thread/ERROR]: #!#! at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[18:53:04] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46)
[18:53:04] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:748)
[18:53:04] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:406)
[18:53:04] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:679)
[18:53:04] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:577)
[18:53:04] [Server thread/ERROR]: #!#! at java.lang.Thread.run(Thread.java:745)
[18:53:04] [Server thread/ERROR]: #!#!
[18:53:04] [Server thread/ERROR]: #!#! Version Information:
[18:53:04] [Server thread/ERROR]: #!#! Skript: 2.2-dev29
[18:53:04] [Server thread/ERROR]: #!#! Bukkit: 1.12.2-R0.1-SNAPSHOT
[18:53:04] [Server thread/ERROR]: #!#! Minecraft: 1.12.2
[18:53:04] [Server thread/ERROR]: #!#! Java: 1.8.0_121 (Java HotSpot(TM) 64-Bit Server VM 25.121-b13)
[18:53:04] [Server thread/ERROR]: #!#! OS: Linux amd64 3.2.41
[18:53:04] [Server thread/ERROR]: #!#!
[18:53:04] [Server thread/ERROR]: #!#! Running CraftBukkit: false
[18:53:04] [Server thread/ERROR]: #!#!
[18:53:04] [Server thread/ERROR]: #!#! Current node: set slot 7 of player"s current inventory to lime dye named "&2&lModerator" with lore "&7Ustaw graczowi &8%player-arg%||&7range &2&lModerator" (ranga.sk, line 17)
[18:53:04] [Server thread/ERROR]: #!#! Current item: null
[18:53:04] [Server thread/ERROR]: #!#!
[18:53:04] [Server thread/ERROR]: #!#! Thread: Server thread
[18:53:04] [Server thread/ERROR]: #!#!
[18:53:04] [Server thread/ERROR]: #!#! End of Error.
[18:53:04] [Server thread/ERROR]: #!#!

 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
set slot 7 of player"s current inventory to lime dye named "&2&lModerator" with lore "&7Ustaw graczowi &8%player-arg%||&7range &2&lModerator" (ranga.sk, line 17)

Dwa razy dałeś ' '
Masz poprawioną linijkę:

set slot 7 of player's current inventory to lime dye named "&2&lModerator" with lore "&7Ustaw graczowi &8%player-arg%||&7range &2&lModerator" (ranga.sk, line 17)

 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

Problem w tym, że jak teraz patrze w ten skrypt (nic nie zmieniłem) to tam jest właśnie

set slot 7 of player's current inventory to lime dye named "&2&lModerator" with lore "&7Ustaw graczowi &8%player-arg%||&7range &2&lModerator"

:/

Jeszcze sprawdzę czy przepisanie tego coś pomoże

edit: Nie działa, wkleiłem to, co mi podałeś i nic...

edit2: Usunięcie tej linijki pomogło, ale teraz mam niekompletny skrypt -.-

Edytowane przez KrisSx
Odnośnik do komentarza
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ę...