Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API: deleteWorld() throws #109

Open
u9g opened this issue Mar 18, 2022 · 0 comments
Open

API: deleteWorld() throws #109

u9g opened this issue Mar 18, 2022 · 0 comments
Assignees
Labels
BUG Something isn't working IN PROGRESS

Comments

@u9g
Copy link

u9g commented Mar 18, 2022

Describe the issue
throw when deleting world (loader is "file")
Spigot version
paper 1.18.2
Plugin version
latest commit as of now on 1.18 branch
How to reproduce
run this code:

    private static void deleteWorldFor(Player player) {
        try {
            IslandManager.INSTANCE.slimePlugin.deleteWorld("my-world");
        } catch (Exception e) {
            // ignore
        }
    }

Crash reports (if available)

[15:55:39 INFO]: U9G issued server command: /is delete
[15:55:39 INFO]: [SlimeWorldManager] [STDOUT] Deleting world.. 68c0d601-be05-42a1-a1f4-aa7d11e503b3_mainworld.
[15:55:39 WARN]: Nag author(s): '[Grinderwolf, Paul19988, Jools, SoapTurtle, Gerolmed, b0ykoe]' of 'SlimeWorldManager' about their usage of System.out/err.print. Please use your plugin's logger instead (JavaPlugin#getLogger).
[15:55:39 WARN]: java.io.IOException: Stream Closed
[15:55:39 WARN]: 	at java.base/java.io.RandomAccessFile.seek0(Native Method)
[15:55:39 WARN]: 	at java.base/java.io.RandomAccessFile.seek(RandomAccessFile.java:590)
[15:55:39 WARN]: 	at slimeworldmanager-plugin.jar//com.grinderwolf.swm.plugin.loaders.file.FileLoader.deleteWorld(FileLoader.java:164)
[15:55:39 WARN]: 	at IslandManager-1.0-SNAPSHOT.jar//com.github.u9g.islandmanager.command.IslandCommand.deleteWorldFor(IslandCommand.java:76)
[15:55:39 WARN]: 	at IslandManager-1.0-SNAPSHOT.jar//com.github.u9g.islandmanager.command.IslandCommand.onIslandDelete(IslandCommand.java:54)
[15:55:39 WARN]: 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[15:55:39 WARN]: 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
[15:55:39 WARN]: 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[15:55:39 WARN]: 	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
[15:55:39 WARN]: 	at IslandManager-1.0-SNAPSHOT.jar//redempt.redlib.commandmanager.Command.runHook(Command.java:799)
[15:55:39 WARN]: 	at IslandManager-1.0-SNAPSHOT.jar//redempt.redlib.commandmanager.Command.execute(Command.java:697)
[15:55:39 WARN]: 	at IslandManager-1.0-SNAPSHOT.jar//redempt.redlib.commandmanager.Command.execute(Command.java:709)
[15:55:39 WARN]: 	at IslandManager-1.0-SNAPSHOT.jar//redempt.redlib.commandmanager.Command$1.execute(Command.java:444)
[15:55:39 WARN]: 	at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:159)
[15:55:39 WARN]: 	at org.bukkit.craftbukkit.v1_18_R2.CraftServer.dispatchCommand(CraftServer.java:905)
[15:55:39 WARN]: 	at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:2306)
[15:55:39 WARN]: 	at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:2117)
[15:55:39 WARN]: 	at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:2098)
[15:55:39 WARN]: 	at net.minecraft.network.protocol.game.PacketPlayInChat.a(PacketPlayInChat.java:46)
[15:55:39 WARN]: 	at net.minecraft.network.protocol.game.PacketPlayInChat.a(PacketPlayInChat.java:6)
[15:55:39 WARN]: 	at net.minecraft.network.protocol.PlayerConnectionUtils.lambda$ensureRunningOnSameThread$1(PlayerConnectionUtils.java:51)
[15:55:39 WARN]: 	at net.minecraft.server.TickTask.run(TickTask.java:18)
[15:55:39 WARN]: 	at net.minecraft.util.thread.IAsyncTaskHandler.d(IAsyncTaskHandler.java:153)
[15:55:39 WARN]: 	at net.minecraft.util.thread.IAsyncTaskHandlerReentrant.d(IAsyncTaskHandlerReentrant.java:23)
[15:55:39 WARN]: 	at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1399)
[15:55:39 WARN]: 	at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:188)
[15:55:39 WARN]: 	at net.minecraft.util.thread.IAsyncTaskHandler.y(IAsyncTaskHandler.java:126)
[15:55:39 WARN]: 	at net.minecraft.server.MinecraftServer.be(MinecraftServer.java:1376)
[15:55:39 WARN]: 	at net.minecraft.server.MinecraftServer.y(MinecraftServer.java:1369)
[15:55:39 WARN]: 	at net.minecraft.util.thread.IAsyncTaskHandler.c(IAsyncTaskHandler.java:136)
[15:55:39 WARN]: 	at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1347)
[15:55:39 WARN]: 	at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1229)
[15:55:39 WARN]: 	at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:315)
[15:55:39 WARN]: 	at java.base/java.lang.Thread.run(Thread.java:833)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BUG Something isn't working IN PROGRESS
Projects
None yet
Development

No branches or pull requests

3 participants