Skip to content

Skript error #6938

Closed
Closed
@Minecradt

Description

@Minecradt

Skript/Server Version

[10:30:10] [Server thread/INFO]: [Skript] Skript's aliases can be found here: https://github.com/SkriptLang/skript-aliases
[10:30:10] [Server thread/INFO]: [Skript] Skript's documentation can be found here: https://docs.skriptlang.org/
[10:30:10] [Server thread/INFO]: [Skript] Skript's tutorials can be found here: https://docs.skriptlang.org/tutorials
[10:30:10] [Server thread/INFO]: [Skript] Server Version: 4090-Spigot-b754dcc-38b1f49 (MC: 1.20.4)
[10:30:10] [Server thread/INFO]: [Skript] Skript Version: 2.9.0 (skriptlang-github)
[10:30:10] [Server thread/INFO]: [Skript] Installed Skript Addons: None
[10:30:10] [Server thread/INFO]: [Skript] Installed dependencies: None

Bug Description

It is a bug about the on player move event.

Expected Behavior

It was meant to be able to set homes and tp and detect player movement

Steps to Reproduce

Create this script.
command /sethome:
trigger:
set {home::%player's uuid%} to location of player
command /home:
trigger:
message "You will be teleported in 5 seconds..."
wait 20 ticks
message "You will be teleported in 4 seconds..."
wait 20 ticks
message "You will be teleported in 3 seconds..."
wait 20 ticks
message "You will be teleported in 2 seconds..."
wait 20 ticks
message "You will be teleported in 1 second..."
on player move:
message player

then reload the skript and look in console.

Errors or Screenshots

[10:27:28] [Server thread/INFO]: soccer1992 issued server command: /sk reload hello.sk
[10:27:28] [Server thread/ERROR]: #!#!
[10:27:28] [Server thread/ERROR]: #!#! [Skript] Severe Error:
[10:27:28] [Server thread/ERROR]: #!#! Could not load hello.sk
[10:27:28] [Server thread/ERROR]: #!#!
[10:27:28] [Server thread/ERROR]: #!#! Something went horribly wrong with Skript.
[10:27:28] [Server thread/ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
[10:27:28] [Server thread/ERROR]: #!#! You should report it at https://github.com/SkriptLang/Skript/issues. Please copy paste this report there (or use paste service).
[10:27:28] [Server thread/ERROR]: #!#! This ensures that your issue is noticed and will be fixed as soon as possible.
[10:27:28] [Server thread/ERROR]: #!#!
[10:27:28] [Server thread/ERROR]: #!#! Stack trace:
[10:27:28] [Server thread/ERROR]: #!#! java.lang.NullPointerException: Cannot read the array length because "" is null
[10:27:28] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptEvent.init(SkriptEvent.java:90)
[10:27:28] [Server thread/ERROR]: #!#! at org.skriptlang.skript.lang.structure.Structure.init(Structure.java:131)
[10:27:28] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:259)
[10:27:28] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parseStatic(SkriptParser.java:207)
[10:27:28] [Server thread/ERROR]: #!#! at org.skriptlang.skript.lang.structure.Structure.parse(Structure.java:217)
[10:27:28] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptEvent.parse(SkriptEvent.java:284)
[10:27:28] [Server thread/ERROR]: #!#! at ch.njol.skript.structures.StructEvent.init(StructEvent.java:69)
[10:27:28] [Server thread/ERROR]: #!#! at org.skriptlang.skript.lang.structure.Structure.init(Structure.java:131)
[10:27:28] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:259)
[10:27:28] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parseStatic(SkriptParser.java:207)
[10:27:28] [Server thread/ERROR]: #!#! at org.skriptlang.skript.lang.structure.Structure.parse(Structure.java:217)
[10:27:28] [Server thread/ERROR]: #!#! at org.skriptlang.skript.lang.structure.Structure.parse(Structure.java:200)
[10:27:28] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:675)
[10:27:28] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.lambda$loadScripts$3(ScriptLoader.java:503)
[10:27:28] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.lambda$makeFuture$2(ScriptLoader.java:424)
[10:27:28] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.makeFuture(ScriptLoader.java:440)
[10:27:28] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:502)
[10:27:28] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:459)
[10:27:28] [Server thread/ERROR]: #!#! at ch.njol.skript.SkriptCommand.onCommand(SkriptCommand.java:190)
[10:27:28] [Server thread/ERROR]: #!#! at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45)
[10:27:28] [Server thread/ERROR]: #!#! at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:149)
[10:27:28] [Server thread/ERROR]: #!#! at org.bukkit.craftbukkit.v1_20_R3.CraftServer.dispatchCommand(CraftServer.java:887)
[10:27:28] [Server thread/ERROR]: #!#! at org.bukkit.craftbukkit.v1_20_R3.command.BukkitCommandWrapper.run(BukkitCommandWrapper.java:50)
[10:27:28] [Server thread/ERROR]: #!#! at com.mojang.brigadier.context.ContextChain.runExecutable(ContextChain.java:73)
[10:27:28] [Server thread/ERROR]: #!#! at net.minecraft.commands.execution.tasks.ExecuteCommand.a(SourceFile:29)
[10:27:28] [Server thread/ERROR]: #!#! at net.minecraft.commands.execution.tasks.ExecuteCommand.execute(SourceFile:13)
[10:27:28] [Server thread/ERROR]: #!#! at net.minecraft.commands.execution.UnboundEntryAction.a(SourceFile:8)
[10:27:28] [Server thread/ERROR]: #!#! at net.minecraft.commands.execution.CommandQueueEntry.a(SourceFile:8)
[10:27:28] [Server thread/ERROR]: #!#! at net.minecraft.commands.execution.ExecutionContext.a(SourceFile:107)
[10:27:28] [Server thread/ERROR]: #!#! at net.minecraft.commands.CommandDispatcher.a(CommandDispatcher.java:413)
[10:27:28] [Server thread/ERROR]: #!#! at net.minecraft.commands.CommandDispatcher.performCommand(CommandDispatcher.java:335)
[10:27:28] [Server thread/ERROR]: #!#! at net.minecraft.commands.CommandDispatcher.a(CommandDispatcher.java:322)
[10:27:28] [Server thread/ERROR]: #!#! at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:1856)
[10:27:28] [Server thread/ERROR]: #!#! at net.minecraft.server.network.PlayerConnection.lambda$15(PlayerConnection.java:1818)
[10:27:28] [Server thread/ERROR]: #!#! at net.minecraft.util.thread.IAsyncTaskHandler.b(SourceFile:67)
[10:27:28] [Server thread/ERROR]: #!#! at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
[10:27:28] [Server thread/ERROR]: #!#! at net.minecraft.server.TickTask.run(SourceFile:18)
[10:27:28] [Server thread/ERROR]: #!#! at net.minecraft.util.thread.IAsyncTaskHandler.d(SourceFile:156)
[10:27:28] [Server thread/ERROR]: #!#! at net.minecraft.util.thread.IAsyncTaskHandlerReentrant.d(SourceFile:23)
[10:27:28] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1191)
[10:27:28] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:1)
[10:27:28] [Server thread/ERROR]: #!#! at net.minecraft.util.thread.IAsyncTaskHandler.x(SourceFile:130)
[10:27:28] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.bl(MinecraftServer.java:1170)
[10:27:28] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1163)
[10:27:28] [Server thread/ERROR]: #!#! at net.minecraft.util.thread.IAsyncTaskHandler.c(SourceFile:139)
[10:27:28] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.w_(MinecraftServer.java:1147)
[10:27:28] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1060)
[10:27:28] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:304)
[10:27:28] [Server thread/ERROR]: #!#! at java.base/java.lang.Thread.run(Thread.java:833)
[10:27:28] [Server thread/ERROR]: #!#!
[10:27:28] [Server thread/ERROR]: #!#! Version Information:
[10:27:28] [Server thread/ERROR]: #!#! Skript: 2.9.0 (latest)
[10:27:28] [Server thread/ERROR]: #!#! Flavor: skriptlang-github
[10:27:28] [Server thread/ERROR]: #!#! Date: 16:01:35.354421100
[10:27:28] [Server thread/ERROR]: #!#! Bukkit: 1.20.4-R0.1-SNAPSHOT
[10:27:28] [Server thread/ERROR]: #!#! Minecraft: 1.20.4
[10:27:28] [Server thread/ERROR]: #!#! Java: 17.0.4 (Java HotSpot(TM) 64-Bit Server VM 17.0.4+11-LTS-179)
[10:27:28] [Server thread/ERROR]: #!#! OS: Windows 11 amd64 10.0
[10:27:28] [Server thread/ERROR]: #!#!
[10:27:28] [Server thread/ERROR]: #!#! Server platform: Spigot
[10:27:28] [Server thread/ERROR]: #!#!
[10:27:28] [Server thread/ERROR]: #!#! Current node: on player move: (hello.sk, line 15)
[10:27:28] [Server thread/ERROR]: #!#! Current item: null
[10:27:28] [Server thread/ERROR]: #!#!
[10:27:28] [Server thread/ERROR]: #!#! Thread: Server thread
[10:27:28] [Server thread/ERROR]: #!#!
[10:27:28] [Server thread/ERROR]: #!#! Language: english
[10:27:28] [Server thread/ERROR]: #!#! Link parse mode: DISABLED
[10:27:28] [Server thread/ERROR]: #!#!
[10:27:28] [Server thread/ERROR]: #!#! End of Error.
[10:27:28] [Server thread/ERROR]: #!#!

Other

No response

Agreement

  • I have read the guidelines above and affirm I am following them with this report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn issue that needs to be fixed. Alternatively, a PR fixing an issue.completedThe issue has been fully resolved and the change will be in the next Skript update.priority: mediumIssues that are detrimental to user experience (prohibitive bugs or lack of useful implementation).

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions