Coder Social home page Coder Social logo

kihsomray / cyberworldreset Goto Github PK

View Code? Open in Web Editor NEW
13.0 13.0 3.0 237 KB

Optimized and seamless world resetting at a scheduled time coded in Java (SpigotMC plugin).

Home Page: https://mc.zerotoil.net/wiki/xwr/getting-started/

License: Apache License 2.0

Java 100.00%

cyberworldreset's People

Contributors

croabeast avatar kihsomray avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cyberworldreset's Issues

Unable to function properly

[22:33:57 INFO]: The_Leopard_King issued server command: /cwr confirm [22:33:57 ERROR]: null org.bukkit.command.CommandException: Unhandled exception executing command 'cwr' in plugin CyberWorldReset v0.6.2 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[pap er-api-1.20.2-R0.1-SNAPSHOT.jar:?] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:15 5) ~[paper-api-1.20.2-R0.1-SNAPSHOT.jar:?] at org.bukkit.craftbukkit.v1_20_R2.CraftServer.dispatchCommand(CraftServ er.java:991) ~[paper-1.20.2.jar:git-Paper-318] at org.bukkit.craftbukkit.v1_20_R2.command.BukkitCommandWrapper.run(Bukk itCommandWrapper.java:64) ~[paper-1.20.2.jar:git-Paper-318] at com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java :265) ~[paper-1.20.2.jar:?] at net.minecraft.commands.Commands.performCommand(Commands.java:330) ~[? :?] at net.minecraft.commands.Commands.performCommand(Commands.java:314) ~[? :?] at net.minecraft.server.network.ServerGamePacketListenerImpl.performChat Command(ServerGamePacketListenerImpl.java:2208) ~[?:?] at net.minecraft.server.network.ServerGamePacketListenerImpl.lambda$hand leChatCommand$19(ServerGamePacketListenerImpl.java:2168) ~[?:?] at net.minecraft.util.thread.BlockableEventLoop.lambda$submitAsync$0(Blo ckableEventLoop.java:59) ~[?:?] at java.util.concurrent.CompletableFuture$AsyncSupply.run(Unknown Source ) ~[?:?] at net.minecraft.server.TickTask.run(TickTask.java:18) ~[paper-1.20.2.ja r:git-Paper-318] at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEvent Loop.java:153) ~[?:?] at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(Reent rantBlockableEventLoop.java:24) ~[?:?] at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1 324) ~[paper-1.20.2.jar:git-Paper-318] at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:193) ~[pa per-1.20.2.jar:git-Paper-318] at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventL oop.java:126) ~[?:?] at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer .java:1301) ~[paper-1.20.2.jar:git-Paper-318] at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:12 94) ~[paper-1.20.2.jar:git-Paper-318] at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEv entLoop.java:136) ~[?:?] at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServe r.java:1272) ~[paper-1.20.2.jar:git-Paper-318] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1 160) ~[paper-1.20.2.jar:git-Paper-318] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.ja va:315) ~[paper-1.20.2.jar:git-Paper-318] at java.lang.Thread.run(Unknown Source) ~[?:?] Caused by: java.lang.StringIndexOutOfBoundsException: Range [0, -18) out of boun ds for length 11 at jdk.internal.util.Preconditions$1.apply(Unknown Source) ~[?:?] at jdk.internal.util.Preconditions$1.apply(Unknown Source) ~[?:?] at jdk.internal.util.Preconditions$4.apply(Unknown Source) ~[?:?] at jdk.internal.util.Preconditions$4.apply(Unknown Source) ~[?:?] at jdk.internal.util.Preconditions.outOfBounds(Unknown Source) ~[?:?] at jdk.internal.util.Preconditions.outOfBoundsCheckFromToIndex(Unknown S ource) ~[?:?] at jdk.internal.util.Preconditions.checkFromToIndex(Unknown Source) ~[?: ?] at java.lang.String.checkBoundsBeginEnd(Unknown Source) ~[?:?] at java.lang.String.substring(Unknown Source) ~[?:?] at net.zerotoil.cyberworldreset.utilities.ZipUtils.getLastModified(ZipUt ils.java:31) ~[CyberWorldReset-0.6.2.jar:?] at net.zerotoil.cyberworldreset.objects.WorldObject.regenWorld(WorldObje ct.java:124) ~[CyberWorldReset-0.6.2.jar:?] at net.zerotoil.cyberworldreset.commands.CWRCommand.argsLen1(CWRCommand. java:148) ~[CyberWorldReset-0.6.2.jar:?] at net.zerotoil.cyberworldreset.commands.CWRCommand.onCommand(CWRCommand .java:52) ~[CyberWorldReset-0.6.2.jar:?] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[pap er-api-1.20.2-R0.1-SNAPSHOT.jar:?] ... 23 more

This my configs
ๆกŒ้ข.zip

image image image

World failed to delete

I am using version 0.6.1 of the plugin on the 1.19.2-purpur server, and I am using version 4.3.1 and 4.3.2 snapshot versions of the multiverse core plugin. However, I encountered a problem. The plugin cannot delete the world normally, so I cannot continue to reset the world.
Among the information I found on the console, only the following contents are related to them (I set the reset interval of the world to five minutes, so it can be seen that this Exception occurred during the second attempt to reset)

  • [14:59:00] [Server thread/INFO]: [Multiverse-Core] World 's_world' was unloaded from Multiverse.
    [14:59:00] [Server thread/INFO]: The world "s_world" failed to delete!
    [14:59:38] [Server thread/INFO]: TsingYayin issued server command: /world s_world
    [15:04:00] [Server thread/WARN]: [CWR] Task #3868 for CyberWorldReset v0.6.1 generated an exception
    java.lang.NullPointerException: Cannot invoke "org.bukkit.World.getEnvironment()" because the return value of "net.zerotoil.cyberworldreset.objects.WorldObject.getWorld()" is null
    at net.zerotoil.cyberworldreset.objects.WorldObject.tpPlayersAway(WorldObject.java:231) ~[CyberWorldReset-0.6.1.jar:?]
    at net.zerotoil.cyberworldreset.objects.WorldObject.regenWorld(WorldObject.java:141) ~[CyberWorldReset-0.6.1.jar:?]
    at net.zerotoil.cyberworldreset.objects.TimedReset$MyTimeTask$1.run(TimedReset.java:182) ~[CyberWorldReset-0.6.1.jar:?]
    at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[purpur-1.19.2.jar:git-Purpur-1758]
    at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483) ~[purpur-1.19.2.jar:git-Purpur-1758]
    at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1519) ~[purpur-1.19.2.jar:git-Purpur-1758]
    at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:485) ~[purpur-1.19.2.jar:git-Purpur-1758]
    at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1443) ~[purpur-1.19.2.jar:git-Purpur-1758]
    at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1213) ~[purpur-1.19.2.jar:git-Purpur-1758]
    at net.minecraft.server.MinecraftServer.lambda$spin$1(MinecraftServer.java:310) ~[purpur-1.19.2.jar:git-Purpur-1758]
    at java.lang.Thread.run(Thread.java:833) ~[?:?]

When I actually checked the corresponding folder of the world named "s_world" mentioned above, I found that most of the files have been deleted, but one .mca file in the poi folder has not been deleted. Since I was the only one on the server during the test, I presume that this file should be occupied during deletion due to some unload error, so it could not be removed correctly.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.