TeZetYT 11 Opublikowano 29 czerwca 2023 Udostępnij Opublikowano 29 czerwca 2023 Witam. Mam 2 pytania odnośnie warpów. Napisałem skrypt na warpy, i oprócz 2 rzeczy wszystko działa. 1. Jak zrobić, że podczas wyświetlania listy warpów nie pokazuje się <none> kiedy SĄ jakieś warpy? Zrobiłem, że <none> to ,,Brak" ale nadal nie mogę zrobić że nie ma tego kiedy są jakieś warpy. 2. Jak zrobić żeby zamiast tego and na końcu w liście warpów było np. i albo przecinek? Próbowałem replace all ale nie działa. Proszę o pomoc, z góry dzięki. Cytuj Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
0 CoFFeIN04 696 Opublikowano 29 czerwca 2023 Udostępnij Opublikowano 29 czerwca 2023 po 1 to bez kodu to mogę co najwyżej wróżyć co do 1. to w jaki sposób zapisujesz warpy i je wyświetlasz? co do 2. najpierw musisz zamienić zmienną grupową na stringa a dopiero później replace robić Cytuj Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
0 TeZetYT 11 Opublikowano 30 czerwca 2023 Autor Udostępnij Opublikowano 30 czerwca 2023 11 godzin temu, CoFFeIN04 napisał: po 1 to bez kodu to mogę co najwyżej wróżyć co do 1. to w jaki sposób zapisujesz warpy i je wyświetlasz? co do 2. najpierw musisz zamienić zmienną grupową na stringa a dopiero później replace robić Wyświetlam warpy tak, że podczas dodania nowego warpa komendą, do zmiennej grupowej o nazwie warpy::* dodaje się argument który jest nazwą podanego warpa, a pod /warplist wyświetla się po prostu ,,Warpy: %{warpy::*}%" Cytuj Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
0 Fendi 173 Opublikowano 30 czerwca 2023 Udostępnij Opublikowano 30 czerwca 2023 (edytowane) W przypadku gdy twoje warpy są zapisane jako text to możesz po prostu użyć replace all "and" and "," with "oraz" in {warpy::*} A jezeli ci to nie zadziala to prawdopodobnie nie jest to zapisane jako text i wtedy musisz to zamienic set {warpy::*} to "%{warpy::*}%" replace all "and" with "oraz" in {warpy::*} send {warpy::*} Edytowane 30 czerwca 2023 przez Fendi CoFFeIN04 1 Cytuj Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
0 TeZetYT 11 Opublikowano 30 czerwca 2023 Autor Udostępnij Opublikowano 30 czerwca 2023 7 minut temu, Fendi napisał: W przypadku gdy twoje warpy są zapisane jako text to możesz po prostu użyć replace all "and" and "," with "oraz" in {warpy::*} A jezeli ci to nie zadziala to prawdopodobnie nie jest to zapisane jako text i wtedy musisz to zamienic set {warpy::*} to "%{warpy::*}%" replace all "and" with "oraz" in {warpy::*} send {warpy::*} [12:09:55] [Server thread/ERROR]: #!#! [12:09:55] [Server thread/ERROR]: #!#! [Skript] Severe Error: [12:09:55] [Server thread/ERROR]: #!#! An error occurred while trying to load a Structure. [12:09:55] [Server thread/ERROR]: #!#! [12:09:55] [Server thread/ERROR]: #!#! Something went horribly wrong with Skript. [12:09:55] [Server thread/ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either. [12:09:55] [Server thread/ERROR]: #!#! It looks like you are using some plugin(s) that alter how Skript works (addons). [12:09:55] [Server thread/ERROR]: #!#! Here is full list of them: [12:09:55] [Server thread/ERROR]: #!#! skRayFall v1.9.27 (https://sk.rayfall.net/) skUtilities v0.9.2 (https://tim740.github.io/) WildSkript v1.6 (http://www.dzikoysk.net/) SkQuery v4.1.8 [12:09:55] [Server thread/ERROR]: #!#! We could not identify which of those are specially related, so this might also be Skript issue. [12:09:55] [Server thread/ERROR]: #!#! You should try disabling those plugins one by one, trying to find which one causes it. [12:09:55] [Server thread/ERROR]: #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue. [12:09:55] [Server thread/ERROR]: #!#! In that case, you will be given instruction on how should you report it. [12:09:55] [Server thread/ERROR]: #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin. [12:09:55] [Server thread/ERROR]: #!#! Only if the author tells you to do so, report it to Skript's issue tracker. [12:09:55] [Server thread/ERROR]: #!#! [12:09:55] [Server thread/ERROR]: #!#! Stack trace: [12:09:55] [Server thread/ERROR]: #!#! java.lang.RuntimeException: pattern compiling exception, element class: net.dzikoysk.wildskript.objects.region.elements.EffRestore (provided by WildSkript) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:236) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:176) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.Statement.parse(Statement.java:60) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:923) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.command.ScriptCommand.<init>(ScriptCommand.java:190) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.structures.StructCommand.load(StructCommand.java:299) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.lambda$loadScripts$8(ScriptLoader.java:555) [12:09:55] [Server thread/ERROR]: #!#! at java.base/java.util.ArrayList.removeIf(ArrayList.java:1672) [12:09:55] [Server thread/ERROR]: #!#! at java.base/java.util.ArrayList.removeIf(ArrayList.java:1660) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.lambda$loadScripts$10(ScriptLoader.java:551) [12:09:55] [Server thread/ERROR]: #!#! at java.base/java.util.concurrent.CompletableFuture.uniApplyNow(CompletableFuture.java:684) [12:09:55] [Server thread/ERROR]: #!#! at java.base/java.util.concurrent.CompletableFuture.uniApplyStage(CompletableFuture.java:662) [12:09:55] [Server thread/ERROR]: #!#! at java.base/java.util.concurrent.CompletableFuture.thenApply(CompletableFuture.java:2168) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:511) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:457) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.SkriptCommand.onCommand(SkriptCommand.java:190) [12:09:55] [Server thread/ERROR]: #!#! at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) [12:09:55] [Server thread/ERROR]: #!#! at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:149) [12:09:55] [Server thread/ERROR]: #!#! at org.bukkit.craftbukkit.v1_18_R2.CraftServer.dispatchCommand(CraftServer.java:826) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:1957) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:1796) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:1777) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.network.protocol.game.PacketPlayInChat.a(PacketPlayInChat.java:46) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.network.protocol.game.PacketPlayInChat.a(PacketPlayInChat.java:1) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.network.protocol.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:31) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.TickTask.run(SourceFile:18) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.util.thread.IAsyncTaskHandler.d(SourceFile:157) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.util.thread.IAsyncTaskHandlerReentrant.d(SourceFile:23) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1190) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:1) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.util.thread.IAsyncTaskHandler.y(SourceFile:131) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.be(MinecraftServer.java:1169) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.y(MinecraftServer.java:1162) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.util.thread.IAsyncTaskHandler.c(SourceFile:140) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1146) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1051) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:304) [12:09:55] [Server thread/ERROR]: #!#! at java.base/java.lang.Thread.run(Thread.java:833) [12:09:55] [Server thread/ERROR]: #!#! Caused by: ch.njol.skript.patterns.MalformedPatternException: caught exception while compiling pattern [pattern: %string%.Region.restore{%regions%}[;]] [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.patterns.PatternCompiler.compile(PatternCompiler.java:56) [12:09:55] [Server thread/ERROR]: #!#! at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1274) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:229) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:176) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.Statement.parse(Statement.java:60) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:923) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.command.ScriptCommand.<init>(ScriptCommand.java:190) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.structures.StructCommand.load(StructCommand.java:299) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.lambda$loadScripts$8(ScriptLoader.java:555) [12:09:55] [Server thread/ERROR]: #!#! at java.base/java.util.ArrayList.removeIf(ArrayList.java:1672) [12:09:55] [Server thread/ERROR]: #!#! at java.base/java.util.ArrayList.removeIf(ArrayList.java:1660) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.lambda$loadScripts$10(ScriptLoader.java:551) [12:09:55] [Server thread/ERROR]: #!#! at java.base/java.util.concurrent.CompletableFuture.uniApplyNow(CompletableFuture.java:684) [12:09:55] [Server thread/ERROR]: #!#! at java.base/java.util.concurrent.CompletableFuture.uniApplyStage(CompletableFuture.java:662) [12:09:55] [Server thread/ERROR]: #!#! at java.base/java.util.concurrent.CompletableFuture.thenApply(CompletableFuture.java:2168) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:511) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:457) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.SkriptCommand.onCommand(SkriptCommand.java:190) [12:09:55] [Server thread/ERROR]: #!#! at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) [12:09:55] [Server thread/ERROR]: #!#! at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:149) [12:09:55] [Server thread/ERROR]: #!#! at org.bukkit.craftbukkit.v1_18_R2.CraftServer.dispatchCommand(CraftServer.java:826) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:1957) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:1796) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:1777) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.network.protocol.game.PacketPlayInChat.a(PacketPlayInChat.java:46) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.network.protocol.game.PacketPlayInChat.a(PacketPlayInChat.java:1) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.network.protocol.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:31) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.TickTask.run(SourceFile:18) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.util.thread.IAsyncTaskHandler.d(SourceFile:157) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.util.thread.IAsyncTaskHandlerReentrant.d(SourceFile:23) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1190) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:1) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.util.thread.IAsyncTaskHandler.y(SourceFile:131) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.be(MinecraftServer.java:1169) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.y(MinecraftServer.java:1162) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.util.thread.IAsyncTaskHandler.c(SourceFile:140) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1146) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1051) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:304) [12:09:55] [Server thread/ERROR]: #!#! at java.base/java.lang.Thread.run(Thread.java:833) [12:09:55] [Server thread/ERROR]: #!#! Caused by: ch.njol.skript.SkriptAPIException: No class info found for region [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.registrations.Classes.getClassInfo(Classes.java:269) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.patterns.TypePatternElement.fromString(TypePatternElement.java:92) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.patterns.PatternCompiler.compile(PatternCompiler.java:140) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.patterns.PatternCompiler.compile(PatternCompiler.java:51) [12:09:55] [Server thread/ERROR]: #!#! at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1274) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:229) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:176) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.Statement.parse(Statement.java:60) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:923) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.command.ScriptCommand.<init>(ScriptCommand.java:190) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.structures.StructCommand.load(StructCommand.java:299) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.lambda$loadScripts$8(ScriptLoader.java:555) [12:09:55] [Server thread/ERROR]: #!#! at java.base/java.util.ArrayList.removeIf(ArrayList.java:1672) [12:09:55] [Server thread/ERROR]: #!#! at java.base/java.util.ArrayList.removeIf(ArrayList.java:1660) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.lambda$loadScripts$10(ScriptLoader.java:551) [12:09:55] [Server thread/ERROR]: #!#! at java.base/java.util.concurrent.CompletableFuture.uniApplyNow(CompletableFuture.java:684) [12:09:55] [Server thread/ERROR]: #!#! at java.base/java.util.concurrent.CompletableFuture.uniApplyStage(CompletableFuture.java:662) [12:09:55] [Server thread/ERROR]: #!#! at java.base/java.util.concurrent.CompletableFuture.thenApply(CompletableFuture.java:2168) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:511) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:457) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.SkriptCommand.onCommand(SkriptCommand.java:190) [12:09:55] [Server thread/ERROR]: #!#! at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) [12:09:55] [Server thread/ERROR]: #!#! at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:149) [12:09:55] [Server thread/ERROR]: #!#! at org.bukkit.craftbukkit.v1_18_R2.CraftServer.dispatchCommand(CraftServer.java:826) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:1957) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:1796) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:1777) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.network.protocol.game.PacketPlayInChat.a(PacketPlayInChat.java:46) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.network.protocol.game.PacketPlayInChat.a(PacketPlayInChat.java:1) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.network.protocol.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:31) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.TickTask.run(SourceFile:18) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.util.thread.IAsyncTaskHandler.d(SourceFile:157) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.util.thread.IAsyncTaskHandlerReentrant.d(SourceFile:23) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1190) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:1) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.util.thread.IAsyncTaskHandler.y(SourceFile:131) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.be(MinecraftServer.java:1169) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.y(MinecraftServer.java:1162) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.util.thread.IAsyncTaskHandler.c(SourceFile:140) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1146) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1051) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:304) [12:09:55] [Server thread/ERROR]: #!#! at java.base/java.lang.Thread.run(Thread.java:833) [12:09:55] [Server thread/ERROR]: #!#! [12:09:55] [Server thread/ERROR]: #!#! Version Information: [12:09:55] [Server thread/ERROR]: #!#! Skript: 2.7.0-beta3 (latest) [12:09:55] [Server thread/ERROR]: #!#! Flavor: skriptlang-github [12:09:55] [Server thread/ERROR]: #!#! Date: 03:18:03.366646700 [12:09:55] [Server thread/ERROR]: #!#! Bukkit: 1.18.2-R0.1-SNAPSHOT [12:09:55] [Server thread/ERROR]: #!#! Minecraft: 1.18.2 [12:09:55] [Server thread/ERROR]: #!#! Java: 17.0.2 (OpenJDK 64-Bit Server VM 17.0.2+8-86) [12:09:55] [Server thread/ERROR]: #!#! OS: Linux amd64 3.10.0-1160.81.1.el7.x86_64 [12:09:55] [Server thread/ERROR]: #!#! [12:09:55] [Server thread/ERROR]: #!#! Server platform: Spigot [12:09:55] [Server thread/ERROR]: #!#! [12:09:55] [Server thread/ERROR]: #!#! Current node: set {warpy::*} to "%{warpy::*}%" (Warps.sk, line 82) [12:09:55] [Server thread/ERROR]: #!#! Current item: null [12:09:55] [Server thread/ERROR]: #!#! [12:09:55] [Server thread/ERROR]: #!#! Thread: Server thread [12:09:55] [Server thread/ERROR]: #!#! [12:09:55] [Server thread/ERROR]: #!#! Language: english [12:09:55] [Server thread/ERROR]: #!#! Link parse mode: DISABLED [12:09:55] [Server thread/ERROR]: #!#! [12:09:55] [Server thread/ERROR]: #!#! End of Error. [12:09:55] [Server thread/ERROR]: #!#! Cytuj Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
0 CoFFeIN04 696 Opublikowano 30 czerwca 2023 Udostępnij Opublikowano 30 czerwca 2023 Po co Ci wildskript i skquery? 12 minut temu, Fendi napisał: W przypadku gdy twoje warpy są zapisane jako text to możesz po prostu użyć replace all "and" and "," with "oraz" in {warpy::*} A jezeli ci to nie zadziala to prawdopodobnie nie jest to zapisane jako text i wtedy musisz to zamienic set {warpy::*} to "%{warpy::*}%" replace all "and" with "oraz" in {warpy::*} send {warpy::*} Nie no nie gadaj takich głupot. set {_} to "%{warpy::*}%" i potem replace all " and" with "," in {_} # {_} to zmienna, która zawiera tekst "warp1, warp2, warp3" Co do słowa brak to możesz zrobić to tak: set {_} to "%{warpy::*}%" if length of {warpy::*} > 0 else "Brak" Fendi 1 Cytuj Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
0 Fendi 173 Opublikowano 30 czerwca 2023 Udostępnij Opublikowano 30 czerwca 2023 5 minut temu, TeZetYT napisał: [12:09:55] [Server thread/ERROR]: #!#! [12:09:55] [Server thread/ERROR]: #!#! [Skript] Severe Error: [12:09:55] [Server thread/ERROR]: #!#! An error occurred while trying to load a Structure. [12:09:55] [Server thread/ERROR]: #!#! [12:09:55] [Server thread/ERROR]: #!#! Something went horribly wrong with Skript. [12:09:55] [Server thread/ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either. [12:09:55] [Server thread/ERROR]: #!#! It looks like you are using some plugin(s) that alter how Skript works (addons). [12:09:55] [Server thread/ERROR]: #!#! Here is full list of them: [12:09:55] [Server thread/ERROR]: #!#! skRayFall v1.9.27 (https://sk.rayfall.net/) skUtilities v0.9.2 (https://tim740.github.io/) WildSkript v1.6 (http://www.dzikoysk.net/) SkQuery v4.1.8 [12:09:55] [Server thread/ERROR]: #!#! We could not identify which of those are specially related, so this might also be Skript issue. [12:09:55] [Server thread/ERROR]: #!#! You should try disabling those plugins one by one, trying to find which one causes it. [12:09:55] [Server thread/ERROR]: #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue. [12:09:55] [Server thread/ERROR]: #!#! In that case, you will be given instruction on how should you report it. [12:09:55] [Server thread/ERROR]: #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin. [12:09:55] [Server thread/ERROR]: #!#! Only if the author tells you to do so, report it to Skript's issue tracker. [12:09:55] [Server thread/ERROR]: #!#! [12:09:55] [Server thread/ERROR]: #!#! Stack trace: [12:09:55] [Server thread/ERROR]: #!#! java.lang.RuntimeException: pattern compiling exception, element class: net.dzikoysk.wildskript.objects.region.elements.EffRestore (provided by WildSkript) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:236) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:176) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.Statement.parse(Statement.java:60) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:923) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.command.ScriptCommand.<init>(ScriptCommand.java:190) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.structures.StructCommand.load(StructCommand.java:299) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.lambda$loadScripts$8(ScriptLoader.java:555) [12:09:55] [Server thread/ERROR]: #!#! at java.base/java.util.ArrayList.removeIf(ArrayList.java:1672) [12:09:55] [Server thread/ERROR]: #!#! at java.base/java.util.ArrayList.removeIf(ArrayList.java:1660) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.lambda$loadScripts$10(ScriptLoader.java:551) [12:09:55] [Server thread/ERROR]: #!#! at java.base/java.util.concurrent.CompletableFuture.uniApplyNow(CompletableFuture.java:684) [12:09:55] [Server thread/ERROR]: #!#! at java.base/java.util.concurrent.CompletableFuture.uniApplyStage(CompletableFuture.java:662) [12:09:55] [Server thread/ERROR]: #!#! at java.base/java.util.concurrent.CompletableFuture.thenApply(CompletableFuture.java:2168) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:511) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:457) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.SkriptCommand.onCommand(SkriptCommand.java:190) [12:09:55] [Server thread/ERROR]: #!#! at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) [12:09:55] [Server thread/ERROR]: #!#! at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:149) [12:09:55] [Server thread/ERROR]: #!#! at org.bukkit.craftbukkit.v1_18_R2.CraftServer.dispatchCommand(CraftServer.java:826) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:1957) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:1796) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:1777) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.network.protocol.game.PacketPlayInChat.a(PacketPlayInChat.java:46) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.network.protocol.game.PacketPlayInChat.a(PacketPlayInChat.java:1) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.network.protocol.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:31) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.TickTask.run(SourceFile:18) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.util.thread.IAsyncTaskHandler.d(SourceFile:157) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.util.thread.IAsyncTaskHandlerReentrant.d(SourceFile:23) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1190) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:1) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.util.thread.IAsyncTaskHandler.y(SourceFile:131) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.be(MinecraftServer.java:1169) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.y(MinecraftServer.java:1162) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.util.thread.IAsyncTaskHandler.c(SourceFile:140) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1146) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1051) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:304) [12:09:55] [Server thread/ERROR]: #!#! at java.base/java.lang.Thread.run(Thread.java:833) [12:09:55] [Server thread/ERROR]: #!#! Caused by: ch.njol.skript.patterns.MalformedPatternException: caught exception while compiling pattern [pattern: %string%.Region.restore{%regions%}[;]] [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.patterns.PatternCompiler.compile(PatternCompiler.java:56) [12:09:55] [Server thread/ERROR]: #!#! at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1274) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:229) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:176) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.Statement.parse(Statement.java:60) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:923) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.command.ScriptCommand.<init>(ScriptCommand.java:190) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.structures.StructCommand.load(StructCommand.java:299) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.lambda$loadScripts$8(ScriptLoader.java:555) [12:09:55] [Server thread/ERROR]: #!#! at java.base/java.util.ArrayList.removeIf(ArrayList.java:1672) [12:09:55] [Server thread/ERROR]: #!#! at java.base/java.util.ArrayList.removeIf(ArrayList.java:1660) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.lambda$loadScripts$10(ScriptLoader.java:551) [12:09:55] [Server thread/ERROR]: #!#! at java.base/java.util.concurrent.CompletableFuture.uniApplyNow(CompletableFuture.java:684) [12:09:55] [Server thread/ERROR]: #!#! at java.base/java.util.concurrent.CompletableFuture.uniApplyStage(CompletableFuture.java:662) [12:09:55] [Server thread/ERROR]: #!#! at java.base/java.util.concurrent.CompletableFuture.thenApply(CompletableFuture.java:2168) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:511) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:457) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.SkriptCommand.onCommand(SkriptCommand.java:190) [12:09:55] [Server thread/ERROR]: #!#! at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) [12:09:55] [Server thread/ERROR]: #!#! at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:149) [12:09:55] [Server thread/ERROR]: #!#! at org.bukkit.craftbukkit.v1_18_R2.CraftServer.dispatchCommand(CraftServer.java:826) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:1957) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:1796) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:1777) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.network.protocol.game.PacketPlayInChat.a(PacketPlayInChat.java:46) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.network.protocol.game.PacketPlayInChat.a(PacketPlayInChat.java:1) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.network.protocol.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:31) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.TickTask.run(SourceFile:18) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.util.thread.IAsyncTaskHandler.d(SourceFile:157) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.util.thread.IAsyncTaskHandlerReentrant.d(SourceFile:23) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1190) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:1) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.util.thread.IAsyncTaskHandler.y(SourceFile:131) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.be(MinecraftServer.java:1169) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.y(MinecraftServer.java:1162) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.util.thread.IAsyncTaskHandler.c(SourceFile:140) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1146) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1051) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:304) [12:09:55] [Server thread/ERROR]: #!#! at java.base/java.lang.Thread.run(Thread.java:833) [12:09:55] [Server thread/ERROR]: #!#! Caused by: ch.njol.skript.SkriptAPIException: No class info found for region [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.registrations.Classes.getClassInfo(Classes.java:269) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.patterns.TypePatternElement.fromString(TypePatternElement.java:92) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.patterns.PatternCompiler.compile(PatternCompiler.java:140) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.patterns.PatternCompiler.compile(PatternCompiler.java:51) [12:09:55] [Server thread/ERROR]: #!#! at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1274) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:229) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:176) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.Statement.parse(Statement.java:60) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:923) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.command.ScriptCommand.<init>(ScriptCommand.java:190) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.structures.StructCommand.load(StructCommand.java:299) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.lambda$loadScripts$8(ScriptLoader.java:555) [12:09:55] [Server thread/ERROR]: #!#! at java.base/java.util.ArrayList.removeIf(ArrayList.java:1672) [12:09:55] [Server thread/ERROR]: #!#! at java.base/java.util.ArrayList.removeIf(ArrayList.java:1660) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.lambda$loadScripts$10(ScriptLoader.java:551) [12:09:55] [Server thread/ERROR]: #!#! at java.base/java.util.concurrent.CompletableFuture.uniApplyNow(CompletableFuture.java:684) [12:09:55] [Server thread/ERROR]: #!#! at java.base/java.util.concurrent.CompletableFuture.uniApplyStage(CompletableFuture.java:662) [12:09:55] [Server thread/ERROR]: #!#! at java.base/java.util.concurrent.CompletableFuture.thenApply(CompletableFuture.java:2168) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:511) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:457) [12:09:55] [Server thread/ERROR]: #!#! at ch.njol.skript.SkriptCommand.onCommand(SkriptCommand.java:190) [12:09:55] [Server thread/ERROR]: #!#! at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) [12:09:55] [Server thread/ERROR]: #!#! at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:149) [12:09:55] [Server thread/ERROR]: #!#! at org.bukkit.craftbukkit.v1_18_R2.CraftServer.dispatchCommand(CraftServer.java:826) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:1957) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:1796) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:1777) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.network.protocol.game.PacketPlayInChat.a(PacketPlayInChat.java:46) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.network.protocol.game.PacketPlayInChat.a(PacketPlayInChat.java:1) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.network.protocol.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:31) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.TickTask.run(SourceFile:18) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.util.thread.IAsyncTaskHandler.d(SourceFile:157) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.util.thread.IAsyncTaskHandlerReentrant.d(SourceFile:23) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1190) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:1) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.util.thread.IAsyncTaskHandler.y(SourceFile:131) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.be(MinecraftServer.java:1169) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.y(MinecraftServer.java:1162) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.util.thread.IAsyncTaskHandler.c(SourceFile:140) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1146) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1051) [12:09:55] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:304) [12:09:55] [Server thread/ERROR]: #!#! at java.base/java.lang.Thread.run(Thread.java:833) [12:09:55] [Server thread/ERROR]: #!#! [12:09:55] [Server thread/ERROR]: #!#! Version Information: [12:09:55] [Server thread/ERROR]: #!#! Skript: 2.7.0-beta3 (latest) [12:09:55] [Server thread/ERROR]: #!#! Flavor: skriptlang-github [12:09:55] [Server thread/ERROR]: #!#! Date: 03:18:03.366646700 [12:09:55] [Server thread/ERROR]: #!#! Bukkit: 1.18.2-R0.1-SNAPSHOT [12:09:55] [Server thread/ERROR]: #!#! Minecraft: 1.18.2 [12:09:55] [Server thread/ERROR]: #!#! Java: 17.0.2 (OpenJDK 64-Bit Server VM 17.0.2+8-86) [12:09:55] [Server thread/ERROR]: #!#! OS: Linux amd64 3.10.0-1160.81.1.el7.x86_64 [12:09:55] [Server thread/ERROR]: #!#! [12:09:55] [Server thread/ERROR]: #!#! Server platform: Spigot [12:09:55] [Server thread/ERROR]: #!#! [12:09:55] [Server thread/ERROR]: #!#! Current node: set {warpy::*} to "%{warpy::*}%" (Warps.sk, line 82) [12:09:55] [Server thread/ERROR]: #!#! Current item: null [12:09:55] [Server thread/ERROR]: #!#! [12:09:55] [Server thread/ERROR]: #!#! Thread: Server thread [12:09:55] [Server thread/ERROR]: #!#! [12:09:55] [Server thread/ERROR]: #!#! Language: english [12:09:55] [Server thread/ERROR]: #!#! Link parse mode: DISABLED [12:09:55] [Server thread/ERROR]: #!#! [12:09:55] [Server thread/ERROR]: #!#! End of Error. [12:09:55] [Server thread/ERROR]: #!#! mi dziala Cytuj Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
0 TeZetYT 11 Opublikowano 30 czerwca 2023 Autor Udostępnij Opublikowano 30 czerwca 2023 Teraz, Fendi napisał: mi dziala Mi też to pokazuje, ale w konsoli jest nawalone to co Ci wysłałem. Cytuj Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
0 Fendi 173 Opublikowano 30 czerwca 2023 Udostępnij Opublikowano 30 czerwca 2023 (edytowane) 3 minuty temu, CoFFeIN04 napisał: Nie no nie gadaj takich głupot. set {_} to "%{warpy::*}%" Możesz wytłumaczyć w jakim celu co każde wpisanie komendy ma się to wykonywać? W moim wystarczy, że stworzy wszystkie warpy jakie potrzebuje, raz użyje skryptu i gotowe 1 minutę temu, TeZetYT napisał: Mi też to pokazuje, ale w konsoli jest nawalone to co Ci wysłałem. @TeZetYT Może to przez twoje niepotrzebne addony jak wildskript skquery skrayfall Edytowane 30 czerwca 2023 przez Fendi Cytuj Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
0 CoFFeIN04 696 Opublikowano 30 czerwca 2023 Udostępnij Opublikowano 30 czerwca 2023 (edytowane) 3 minuty temu, Fendi napisał: Możesz wytłumaczyć w jakim celu co każde wpisanie komendy ma się to wykonywać? W moim wystarczy, że stworzy wszystkie warpy jakie potrzebuje, raz użyje skryptu i gotowe Pominę fakt, że chciałeś do zmiennej grupowej upchać stringa. Po co? Bo warpy można dodać w trakcie działania skryptu, można je też zapewne usunąć. Zmienna {warpy::*} zapewne przechowuje nie tylko nazwę warpu ale również jego lokalizacje co niesukcesywnie próbowałeś nadpisać tekstem 3 minuty temu, TeZetYT napisał: Mi też to pokazuje, ale w konsoli jest nawalone to co Ci wysłałem. 5 minut temu, CoFFeIN04 napisał: Po co Ci wildskript i skquery? Edytowane 30 czerwca 2023 przez CoFFeIN04 Cytuj Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
0 TeZetYT 11 Opublikowano 30 czerwca 2023 Autor Udostępnij Opublikowano 30 czerwca 2023 4 minuty temu, CoFFeIN04 napisał: Po co Ci wildskript i skquery? Nie no nie gadaj takich głupot. set {_} to "%{warpy::*}%" i potem replace all " and" with "," in {_} # {_} to zmienna, która zawiera tekst "warp1, warp2, warp3" Co do słowa brak to możesz zrobić to tak: set {_} to "%{warpy::*}%" if length of {warpy::*} > 0 else "Brak" Totalnie nic z tego nie działa. Nadal jest Brak. and (jakis tam warp) W konsoli niby nie ma błędów ani w Minecraft, ale nie działa to w praktyce. No cóż, jeszcze chwilkę pokombinuje i może uda mi się coś wykminić. Ale dzięki za chęć pomocy Cytuj Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
0 Fendi 173 Opublikowano 30 czerwca 2023 Udostępnij Opublikowano 30 czerwca 2023 Po co? Bo warpy można dodać w trakcie działania skryptu, można je też zapewne usunąć. Zmienna {warpy::*} zapewne przechowuje nie tylko nazwę warpu ale również jego lokalizacje co niesukcesywnie próbowałeś nadpisać tekstem Okej, doda raz na tydzien 1 warp, to wklei lub stworzy osobną komendę do tego, wykonywanie dodatkowych akcji za każdym razem jest zbędne Cytuj Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
0 CoFFeIN04 696 Opublikowano 30 czerwca 2023 Udostępnij Opublikowano 30 czerwca 2023 Może zacznij od wyczyszczenia twojej zmiennej z warpami jakimś delete {warpy::*} przydałby się również cały kod, żeby móc powiedzieć coś więcej Cytuj Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
0 TeZetYT 11 Opublikowano 30 czerwca 2023 Autor Udostępnij Opublikowano 30 czerwca 2023 Teraz, CoFFeIN04 napisał: Może zacznij od wyczyszczenia twojej zmiennej z warpami jakimś delete {warpy::*} przydałby się również cały kod, żeby móc powiedzieć coś więcej Wspominałeś żebym odinstalował SkQuery i WildSkript? Cytuj Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
0 CoFFeIN04 696 Opublikowano 30 czerwca 2023 Udostępnij Opublikowano 30 czerwca 2023 (edytowane) 2 minuty temu, Fendi napisał: Po co? Bo warpy można dodać w trakcie działania skryptu, można je też zapewne usunąć. Zmienna {warpy::*} zapewne przechowuje nie tylko nazwę warpu ale również jego lokalizacje co niesukcesywnie próbowałeś nadpisać tekstem Okej, doda raz na tydzien 1 warp, to wklei lub stworzy osobną komendę do tego, wykonywanie dodatkowych akcji za każdym razem jest zbędne no dobrze, prosta konwersja na stringa na pewno będzie demonem, który pożre wydajność Ależ proszę function updateWarpyString(): set {WARPY_STRING} to "%{warpy::*}%" replace all " and" with "," in {WARPY_STRING} on load: updateWarpyString() command /setwarp: trigger: [...] updateWarpyString() 1 minutę temu, TeZetYT napisał: Wspominałeś żebym odinstalował SkQuery i WildSkript? WildSkript to się w ogóle dziwię, że działa na tej wersji jak on nie jest wspierany od X lat. SkQuery nic ciekawego już nie wprowadza dlatego też można się pozbyć, chyba że korzystasz jakiegoś feature, którego nie ma w Skript Edytowane 30 czerwca 2023 przez CoFFeIN04 Cytuj Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
0 Fendi 173 Opublikowano 30 czerwca 2023 Udostępnij Opublikowano 30 czerwca 2023 (edytowane) 18 minut temu, TeZetYT napisał: Wspominałeś żebym odinstalował SkQuery i WildSkript? A czy możesz podać chociaz 1 składnie która używasz z tych addonow? @CoFFeIN04 Przecież wystarczyło by samo on script load i tam użyć replace "to" and "to" with "," in {} Edytowane 30 czerwca 2023 przez Fendi Cytuj Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
0 TeZetYT 11 Opublikowano 30 czerwca 2023 Autor Udostępnij Opublikowano 30 czerwca 2023 6 minut temu, CoFFeIN04 napisał: no dobrze, prosta konwersja na stringa na pewno będzie demonem, który pożre wydajność Ależ proszę function updateWarpyString(): set {WARPY_STRING} to "%{warpy::*}%" replace all " and" with "," in {WARPY_STRING} on load: updateWarpyString() command /setwarp: trigger: [...] updateWarpyString() WildSkript to się w ogóle dziwię, że działa na tej wersji jak on nie jest wspierany od X lat. SkQuery nic ciekawego już nie wprowadza dlatego też można się pozbyć, chyba że korzystasz jakiegoś feature, którego nie ma w Skript Wpadłem na inny pomysł i odziwo działa. Zrobiłem po prostu tak: if length of {warpy::*} is greater than 1: remove "Brak." from {warpy::*} send "%{warpy::*}%" else: send "%{warpy::*}%" Cytuj Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
0 CoFFeIN04 696 Opublikowano 30 czerwca 2023 Udostępnij Opublikowano 30 czerwca 2023 Godzinę temu, Fendi napisał: Przecież wystarczyło by samo on script load i tam użyć replace "to" and "to" with "," in {} no nie, warp zawsze można dodać, usunąć Cytuj Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
0 Fendi 173 Opublikowano 30 czerwca 2023 Udostępnij Opublikowano 30 czerwca 2023 (edytowane) 43 minuty temu, CoFFeIN04 napisał: no nie, warp zawsze można dodać, usunąć i wtedy wystarczylo by przeladowac skrypt, 2/3 linijki kodu Lepiej uzywac kodu raz na jakis czas, czy uzywac go caly czas by replacowac ciągle to samo? Edytowane 30 czerwca 2023 przez Fendi Cytuj Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
0 CoFFeIN04 696 Opublikowano 30 czerwca 2023 Udostępnij Opublikowano 30 czerwca 2023 gdzie widzisz cały czas? 2 godziny temu, CoFFeIN04 napisał: Ależ proszę function updateWarpyString(): set {WARPY_STRING} to "%{warpy::*}%" replace all " and" with "," in {WARPY_STRING} on load: updateWarpyString() command /setwarp: trigger: [...] updateWarpyString() Cytuj Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
1 Fendi 173 Opublikowano 30 czerwca 2023 Udostępnij Opublikowano 30 czerwca 2023 3 godziny temu, CoFFeIN04 napisał: Po co Ci wildskript i skquery? Nie no nie gadaj takich głupot. set {_} to "%{warpy::*}%" i potem replace all " and" with "," in {_} # {_} to zmienna, która zawiera tekst "warp1, warp2, warp3" Co do słowa brak to możesz zrobić to tak: set {_} to "%{warpy::*}%" if length of {warpy::*} > 0 else "Brak" Chodzilo mi bardziej o ten post Skoro według ciebie ten kod z funkcją będzie bardziej zżerać wydajność, mi się tak raczej nie wydaje, twój drugi kod odpalał by się tylko przy ładowaniu serwera oraz przy dodaniu nowego warpa, a ten pierwszy za każdem razem kiedy ktoś wpisze /warp Cytuj Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Pytanie
TeZetYT 11
Witam. Mam 2 pytania odnośnie warpów. Napisałem skrypt na warpy, i oprócz 2 rzeczy wszystko działa.
1. Jak zrobić, że podczas wyświetlania listy warpów nie pokazuje się <none> kiedy SĄ jakieś warpy?
Zrobiłem, że <none> to ,,Brak" ale nadal nie mogę zrobić że nie ma tego kiedy są jakieś warpy.
2. Jak zrobić żeby zamiast tego and na końcu w liście warpów było np. i albo przecinek?
Próbowałem replace all ale nie działa. Proszę o pomoc, z góry dzięki.
Odnośnik do komentarza
Udostępnij na innych stronach
21 odpowiedzi na to pytanie
Rekomendowane odpowiedzi
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ą.