Loading SlimeWorld after reloading skript

Aperta
#8,560 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
43/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
java
Ambito
backend

Direzione di ricerca

Start by reproducing the reported startup and reload sequence with Skript and SlimeWorldManager, then inspect the world references in the issue's examples and the reported SkBee load-chunk error. The issue does not identify a Skript file or test to start from. Done means the reported world-related scripts work after server startup and Skript reload without errors.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug
Skript/Server Version
[20:46:43 INFO]: [Skript] Skript's aliases can be found here: https://github.com/SkriptLang/skript-aliases
[20:46:43 INFO]: [Skript] Skript's documentation can be found here: https://docs.skriptlang.org/
[20:46:43 INFO]: [Skript] Skript's tutorials can be found here: https://docs.skriptlang.org/tutorials
[20:46:43 INFO]: [Skript] Server Version: 1.21.10-16841-f9d1052 (MC: 1.21.10)
[20:46:43 INFO]: [Skript] Skript Version: 2.14.3 (skriptlang-github)
[20:46:43 INFO]: [Skript] Installed Skript Addons: 
[20:46:43 INFO]: [Skript]  - skript-placeholders v1.7.0 (https://github.com/APickledWalrus/skript-placeholders)
[20:46:43 INFO]: [Skript]  - skript-itemsadder v1.6.1
[20:46:43 INFO]: [Skript]  - skript-reflect v2.6.3 (https://github.com/SkriptLang/skript-reflect)
[20:46:43 INFO]: [Skript]  - skript-db v1.3.9
[20:46:43 INFO]: [Skript]  - SkQuery v4.3.2
[20:46:43 INFO]: [Skript]  - SkBee v3.18.1 (https://github.com/ShaneBeee/SkBee)
[20:46:43 INFO]: [Skript]  - ItemsAdder v4.0.15 (devs.beer)
[20:46:43 INFO]: [Skript] Installed dependencies: 
[20:46:43 INFO]: [Skript]  - Vault v1.7.3-b131
[20:46:43 INFO]: [Skript]  - WorldGuard v7.0.14+2339-43997ec

I know its not latest but I didnt see anything world related in changelog
Im using SlimeWorldManager - AdvancedSlimePaper version 1.21.10-16841-paper_upstream@f9d1052 (1970-01-01T00:00:00Z) (Implementing API version 1.21.10-R0.1-SNAPSHOT)

Bug Description

Examples:
at 6pm in "ffaarena"
set the gamerule doTileDrops of world "arenaffa" to false

Image

This skript loads world in on load event so there will be always error after server restart if world wasnt somehow loaded before loading skript.
When world was loaded then I could reload skript again and then there is no error.

I tried to load chunk in SlimeWorld with SkBee but I cant.

[22:39:29 ERROR]: #!#! [Skript] Severe Error:
[22:39:29 ERROR]: #!#! 
[22:39:29 ERROR]: #!#! An unexpected error occurred with Skript. This issue is likely not your fault.
[22:39:29 ERROR]: #!#! You are using some plugins that alter how Skript works (addons).
[22:39:29 ERROR]: #!#! Full list of addons:
[22:39:29 ERROR]: #!#! skript-db v1.3.9
[22:39:29 ERROR]: #!#! SkBee v3.18.1 (https://github.com/ShaneBeee/SkBee)
[22:39:29 ERROR]: #!#! skript-itemsadder v1.6.1
[22:39:29 ERROR]: #!#! skript-reflect v2.6.3 (https://github.com/SkriptLang/skript-reflect)
[22:39:29 ERROR]: #!#! SkQuery v4.3.2
[22:39:29 ERROR]: #!#! ItemsAdder v4.0.15 (devs.beer)
[22:39:29 ERROR]: #!#! skript-placeholders v1.7.0 (https://github.com/APickledWalrus/skript-placeholders)
[22:39:29 ERROR]: #!#! We could not identify related addons, it might also be a Skript issue.
[22:39:29 ERROR]: #!#! Try temporarily removing the listed plugins one by one to identify the cause.
[22:39:29 ERROR]: #!#! If removing a plugin resolves the issue, please report the problem to the plugin developer.
[22:39:29 ERROR]: #!#! 
[22:39:29 ERROR]: #!#! Stack trace:
[22:39:29 ERROR]: #!#! Caused by: java.lang.NullPointerException: Cannot invoke "org.bukkit.World.getChunkAt(int, int)" because "world" is null
[22:39:29 ERROR]: #!#!     at SkBee-3.18.1.jar//com.shanebeestudios.skbee.elements.other.effects.EffLoadChunk.walk(EffLoadChunk.java:154)
[22:39:29 ERROR]: #!#!     at Skript-2.14.3.jar//ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:67)
[22:39:29 ERROR]: #!#!     at Skript-2.14.3.jar//ch.njol.skript.lang.Trigger.execute(Trigger.java:33)
[22:39:29 ERROR]: #!#!     at Skript-2.14.3.jar//ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:352)
[22:39:29 ERROR]: #!#!     at Skript-2.14.3.jar//ch.njol.skript.command.ScriptCommand.lambda$execute$0(ScriptCommand.java:311)
[22:39:29 ERROR]: #!#!     at Skript-2.14.3.jar//ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:322)
[22:39:29 ERROR]: #!#!     at Skript-2.14.3.jar//ch.njol.skript.command.ScriptCommand.onCommand(ScriptCommand.java:257)
[22:39:29 ERROR]: #!#!     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45)
[22:39:29 ERROR]: #!#!     at io.papermc.paper.command.brigadier.bukkit.BukkitCommandNode$BukkitBrigCommand.run(BukkitCommandNode.java:83)
[22:39:29 ERROR]: #!#!     at com.mojang.brigadier.context.ContextChain.runExecutable(ContextChain.java:73)
[22:39:29 ERROR]: #!#!     at net.minecraft.commands.execution.tasks.ExecuteCommand.execute(ExecuteCommand.java:30)
[22:39:29 ERROR]: #!#!     at net.minecraft.commands.execution.tasks.ExecuteCommand.execute(ExecuteCommand.java:13)
[22:39:29 ERROR]: #!#!     at net.minecraft.commands.execution.UnboundEntryAction.lambda$bind$0(UnboundEntryAction.java:8)
[22:39:29 ERROR]: #!#!     at net.minecraft.commands.execution.CommandQueueEntry.execute(CommandQueueEntry.java:5)
[22:39:29 ERROR]: #!#!     at net.minecraft.commands.execution.ExecutionContext.runCommandQueue(ExecutionContext.java:105)
[22:39:29 ERROR]: #!#!     at net.minecraft.commands.Commands.executeCommandInContext(Commands.java:458)
[22:39:29 ERROR]: #!#!     at net.minecraft.commands.Commands.performCommand(Commands.java:364)
[22:39:29 ERROR]: #!#!     at net.minecraft.commands.Commands.performCommand(Commands.java:352)
[22:39:29 ERROR]: #!#!     at net.minecraft.server.network.ServerGamePacketListenerImpl.performUnsignedChatCommand(ServerGamePacketListenerImpl.java:2320)
[22:39:29 ERROR]: #!#!     at net.minecraft.server.network.ServerGamePacketListenerImpl.lambda$handleChatCommand$12(ServerGamePacketListenerImpl.java:2293)
[22:39:29 ERROR]: #!#!     at net.minecraft.server.TickTask.run(TickTask.java:18)
[22:39:29 ERROR]: #!#!     at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:176)
[22:39:29 ERROR]: #!#!     at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24)
[22:39:29 ERROR]: #!#!     at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1542)
[22:39:29 ERROR]: #!#!     at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:180)
[22:39:29 ERROR]: #!#!     at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:150)
[22:39:29 ERROR]: #!#!     at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1522)
[22:39:29 ERROR]: #!#!     at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1516)
[22:39:29 ERROR]: #!#!     at net.minecraft.server.MinecraftServer.recordTaskExecutionTimeWhileWaiting(MinecraftServer.java:1226)
[22:39:29 ERROR]: #!#!     at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1357)
[22:39:29 ERROR]: #!#!     at net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServer.java:383)
[22:39:29 ERROR]: #!#!     at java.base/java.lang.Thread.run(Thread.java:1583)
[22:39:29 ERROR]: #!#! 
[22:39:29 ERROR]: #!#! Skript: 2.14.3 (unknown)
[22:39:29 ERROR]: #!#!     Flavor: skriptlang-github
[22:39:29 ERROR]: #!#!     Date: 21:17:31.758996
[22:39:29 ERROR]: #!#! Bukkit: 1.21.10-R0.1-SNAPSHOT
[22:39:29 ERROR]: #!#! Minecraft: 1.21.10
[22:39:29 ERROR]: #!#! Java: 21.0.10 (OpenJDK 64-Bit Server VM 21.0.10+7-LTS)
[22:39:29 ERROR]: #!#! OS: Linux amd64 6.8.0-90-generic
[22:39:29 ERROR]: #!#! 
[22:39:29 ERROR]: #!#! Server platform: Paper
[22:39:29 ERROR]: #!#! 
[22:39:29 ERROR]: #!#! Current node: null
[22:39:29 ERROR]: #!#! Current item: load chunk at location(x: [[long:0]], y: [[long:60]], z: [[long:0]], world: the world with name "arenaffa", yaw: [[integer:1]], pitch: [[integer:1]]) 
[22:39:29 ERROR]: #!#! Current trigger: command /loadchunk (simple event) (ffa_map.sk, line 5)
[22:39:29 ERROR]: #!#! Thread: Server thread
[22:39:29 ERROR]: #!#! Language: english
[22:39:29 ERROR]: #!#! Link parse mode: DISABLED
[22:39:29 ERROR]: #!#! End of Error.
[22:39:29 ERROR]: #!#! ```
Lingua principale
Java
Stelle
1.3k
Fork
456
Merge medio
4g 14h
PR unite (30g)
6

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di SkriptLang/Skript

Tutte le issue di SkriptLang/Skript

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.