the 1st argument is already a text, so you should not put it in one (e.g. the 1st argument instead o

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

XeonZ

Member
Jan 31, 2017
3
0
1
39
Hi

Just got a bunch of console errors for some old skripts... well I haven't updated the server in years and alot of older skripts are spamming errors similar to the below... I guess some things changed?

Anyone able to give me a quick hand with what needs changing on these to get them working... I think it's just a few syntax changs I'm not aware of... and also maybe some additional addon plugins I'm missing....

Code:
[02:20:34][Server thread/WARN]: [Skript] §6§lLine 5:§7 (kz_sendto.sk)

§e    coloured the 2nd argument is already a text, so you should not put it in one (e.g. coloured the 2nd argument instead of "%coloured the 2nd argument%")
§6    Line: §7send "%colored arg 2%" to player argument
 §r
kz_sendto.sk
Code:
command /sendto <player> <text>:
    permission: skript.sendto
    usage: /sendto [playername] [text]
    trigger:
        send "%colored arg 2%" to player argument



Code:
[02:20:33] [Server thread/WARN]: [Skript] §6§lLine 4:§7 (kz_approveIP.sk)
§e    the 1st argument is already a text, so you should not put it in one (e.g. the 1st argument instead of "%the 1st argument%")
§6    Line: §7set {name} to "%arg 1%"

kz_approveIP.sk
Code:
command /approveip <text> <text>:
    permission: skript.addip
    trigger:
        set {name} to "%arg 1%"
        set {ip} to "%arg 2%"
        make console execute command "/approve %{name}% %{ip}%"
        message "&aIP '&f%{ip}%&a' Approved for '&f%{name}%&a', reconnect."


Completely different issue I think maybe a plugin is missing or not working?

Code:
[02:20:33] [Server thread/ERROR]: #!#!
[02:20:33] [Server thread/ERROR]: #!#! [Skript] Severe Error:
[02:20:33] [Server thread/ERROR]: #!#! Could not load kz_discoarmor.sk
[02:20:33] [Server thread/ERROR]: #!#!
[02:20:33] [Server thread/ERROR]: #!#! Something went horribly wrong with Skript.
[02:20:33] [Server thread/ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
[02:20:33] [Server thread/ERROR]: #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).
[02:20:33] [Server thread/ERROR]: #!#! Here is full list of them:
[02:20:33] [Server thread/ERROR]: #!#! skRayFall v1.9.26 (https://sk.rayfall.net/) WebSK v1.2.1 SkBee v1.15.0 (https://github.com/ShaneBeee/SkBee) Skacket v1.0.8 Skellett v2.0.3 (https://forums.skunity.com/resources/skellett.24/) SkQuery v4.1.6 SkDynmap v1.2.2 (https://skylyxx.github.io/skdynmap)
[02:20:33] [Server thread/ERROR]: #!#! We could not identify which of those are specially related, so this might also be Skript issue.
[02:20:33] [Server thread/ERROR]: #!#! You should try disabling those plugins one by one, trying to find which one causes it.
[02:20:33] [Server thread/ERROR]: #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.
[02:20:33] [Server thread/ERROR]: #!#! In that case, you will be given instruction on how should you report it.
[02:20:33] [Server thread/ERROR]: #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.
[02:20:33] [Server thread/ERROR]: #!#! Only if the author tells you to do so, report it to Skript's issue tracker.
[02:20:33] [Server thread/ERROR]: #!#!
[02:20:33] [Server thread/ERROR]: #!#! Stack trace:
[02:20:33] [Server thread/ERROR]: #!#! ch.njol.skript.SkriptAPIException: No class info found for citizen
[02:20:33] [Server thread/ERROR]: #!#!     at ch.njol.skript.registrations.Classes.getClassInfo(Classes.java:263)
[02:20:33] [Server thread/ERROR]: #!#!     at ch.njol.skript.patterns.TypePatternElement.fromString(TypePatternElement.java:92)
[02:20:33] [Server thread/ERROR]: #!#!     at ch.njol.skript.patterns.PatternCompiler.compile(PatternCompiler.java:132)
[02:20:33] [Server thread/ERROR]: #!#!     at ch.njol.skript.patterns.PatternCompiler.compile(PatternCompiler.java:48)
[02:20:33] [Server thread/ERROR]: #!#!     at java.base/java.util.HashMap.computeIfAbsent(HashMap.java:1220)
[02:20:33] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1301)
[02:20:33] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:226)
[02:20:33] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:179)
[02:20:33] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Condition.parse(Condition.java:77)
[02:20:33] [Server thread/ERROR]: #!#!     at ch.njol.skript.sections.SecConditional.init(SecConditional.java:83)
[02:20:33] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Section.init(Section.java:69)
[02:20:33] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:257)
[02:20:33] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:179)
[02:20:33] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Section.lambda$parse$0(Section.java:157)
[02:20:33] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Section$SectionContext.modify(Section.java:190)
[02:20:33] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Section.parse(Section.java:156)
[02:20:33] [Server thread/ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:1127)
[02:20:33] [Server thread/ERROR]: #!#!     at ch.njol.skript.command.Commands.loadCommand(Commands.java:489)
[02:20:33] [Server thread/ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:707)
[02:20:33] [Server thread/ERROR]: #!#!     at ch.njol.skript.ScriptLoader.lambda$loadScripts$4(ScriptLoader.java:525)
[02:20:33] [Server thread/ERROR]: #!#!     at ch.njol.skript.ScriptLoader.lambda$makeFuture$2(ScriptLoader.java:417)
[02:20:33] [Server thread/ERROR]: #!#!     at ch.njol.skript.ScriptLoader.makeFuture(ScriptLoader.java:433)
[02:20:33] [Server thread/ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:524)
[02:20:33] [Server thread/ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:468)
[02:20:33] [Server thread/ERROR]: #!#!     at ch.njol.skript.Skript$1.run(Skript.java:778)
[02:20:33] [Server thread/ERROR]: #!#!     at org.bukkit.craftbukkit.v1_18_R1.scheduler.CraftTask.run(CraftTask.java:82)
[02:20:33] [Server thread/ERROR]: #!#!     at org.bukkit.craftbukkit.v1_18_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:415)
[02:20:33] [Server thread/ERROR]: #!#!     at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1255)
[02:20:33] [Server thread/ERROR]: #!#!     at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:428)
[02:20:33] [Server thread/ERROR]: #!#!     at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1206)
[02:20:33] [Server thread/ERROR]: #!#!     at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1034)
[02:20:33] [Server thread/ERROR]: #!#!     at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:304)
[02:20:33] [Server thread/ERROR]: #!#!     at java.base/java.lang.Thread.run(Thread.java:833)
[02:20:33] [Server thread/ERROR]: #!#!
[02:20:33] [Server thread/ERROR]: #!#! Version Information:
[02:20:33] [Server thread/ERROR]: #!#!   Skript: 2.6.1 (latest)
[02:20:33] [Server thread/ERROR]: #!#!     Flavor: skriptlang-github
[02:20:33] [Server thread/ERROR]: #!#!     Date: 22:18:42.554713200
[02:20:33] [Server thread/ERROR]: #!#!   Bukkit: 1.18.1-R0.1-SNAPSHOT
[02:20:33] [Server thread/ERROR]: #!#!   Minecraft: 1.18.1
[02:20:33] [Server thread/ERROR]: #!#!   Java: 17.0.2 (OpenJDK 64-Bit Server VM 17.0.2+8)
[02:20:33] [Server thread/ERROR]: #!#!   OS: Windows 10 amd64 10.0
[02:20:33] [Server thread/ERROR]: #!#!
[02:20:33] [Server thread/ERROR]: #!#! Server platform: Spigot
[02:20:33] [Server thread/ERROR]: #!#!
[02:20:33] [Server thread/ERROR]: #!#! Current node: while player is online: (kz_discoarmor.sk, line 9)
[02:20:33] [Server thread/ERROR]: #!#! Current item: null
[02:20:33] [Server thread/ERROR]: #!#!
[02:20:33] [Server thread/ERROR]: #!#! Thread: Server thread
[02:20:33] [Server thread/ERROR]: #!#!
[02:20:33] [Server thread/ERROR]: #!#! Language: english
[02:20:33] [Server thread/ERROR]: #!#! Link parse mode: DISABLED
[02:20:33] [Server thread/ERROR]: #!#!
[02:20:33] [Server thread/ERROR]: #!#! End of Error.
[02:20:33] [Server thread/ERROR]: #!#!

....and the skript for the above error is this

Code:
options:
    speed: 3 tick
command /discoarmor:
    permission: skript.discoarmor
    trigger:
        while player is online:
            set {_r} to random integer between 0 and 255
            set {_g} to random integer between 0 and 255
            set {_b} to random integer between 0 and 255
            # #! Do not use #? %symbols% ?# around expressions when defining expressions in () tags !#
            dye player's helmet ({_r}, {_g}, {_b})
            dye player's chestplate ({_r}, {_g}, {_b})
            dye player's leggings ({_r}, {_g}, {_b})
            dye player's boots ({_r}, {_g}, {_b})
            #dye player's helmet (random integer between 0 and 255, random integer between 0 and 10, random integer between 0 and 10)
            #dye player's chestplate (random integer between 0 and 130, random integer between 0 and 20, random integer between 0 and 20)
            #dye player's leggings (random integer between 0 and 255, random integer between 0 and 10, random integer between 0 and 10)
            #dye player's boots (random integer between 0 and 255, random integer between 0 and 10, random integer between 0 and 10)
            wait {@speed}

command /armoralert:
    permission: skript.armoralert
    trigger:
        loop 1000 times:
            set {_r} to random integer between 0 and 255
            set {_g} to random integer between 0 and 20
            set {_b} to random integer between 0 and 20
            # #! Do not use #? %symbols% ?# around expressions when defining expressions in () tags !#
            dye player's helmet ({_r}, {_g}, {_b})
            dye player's chestplate ({_r}, {_g}, {_b})
            dye player's leggings ({_r}, {_g}, {_b})
            dye player's boots ({_r}, {_g}, {_b})
            #dye player's helmet (random integer between 0 and 255, random integer between 0 and 10, random integer between 0 and 10)
            #dye player's chestplate (random integer between 0 and 130, random integer between 0 and 20, random integer between 0 and 20)
            #dye player's leggings (random integer between 0 and 255, random integer between 0 and 10, random integer between 0 and 10)
            #dye player's boots (random integer between 0 and 255, random integer between 0 and 10, random integer between 0 and 10)
            wait {@speed}

Thanks for any help​
 
Just ignore "Is already text" warnings, they aren't real errors. It's just skript whining about them
 
oh so those skripts actually still work then? I hadn't tried them so didn't realize it was just a warning.. though would be good to know what code changes need to be to not have those warnings...

and just the disco armor one I guess then that needs a missing plugin or a plugin that is broken?
 
oh so those skripts actually still work then? I hadn't tried them so didn't realize it was just a warning.. though would be good to know what code changes need to be to not have those warnings...

and just the disco armor one I guess then that needs a missing plugin or a plugin that is broken?

One of your addons seems to be broken

My guess would be that it's SkWeb or Skacket
 
aah I found the issue.. was with Skellett https://github.com/TheLimeGlass/Skellett/issues/155

Have to have citizens2 on and 'npc = true' in the skellett config.. .error gone..

still need some guide on how to update the skripts from all the warning messages
[doublepost=1645107895,1645105784][/doublepost]nvm fixed it all now

send "%colored arg 2%" to player argument
is now...
send colored arg-2 to player argument
 
Status
Not open for further replies.