Towny Classic

Towny Classic

3.1k Downloads

Revert on unclaim speed cannot be made faster

Parthodys opened this issue ยท 0 comments

commented

What steps will reproduce the problem?

  1. revert_on_unclaim:
    enabled: 'true'
    speed: 0.5s (or 0,5s, 50ms)

What is the expected output?

Towny reverts blocks faster than the default speed.

Perhaps the speed could be specified in ticks?

Towny version

v0.100.4.5

Server version

1.21.1 Paper

Errors

[Towny] Error could not read new_world_settings.plot_management.revert_on_unclaim.speed from config.yml

[Towny] Global task for Towny v0.100.4.5 generated an exception
java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0
        at towny-0.100.4.5.jar/com.palmergames.util.TimeTools.secondsFromDhms(TimeTools.java:46) ~[towny-0.100.4.5.jar:?]
        at towny-0.100.4.5.jar/com.palmergames.util.TimeTools.getSeconds(TimeTools.java:59) ~[towny-0.100.4.5.jar:?]
        at towny-0.100.4.5.jar/com.palmergames.bukkit.towny.TownySettings.getSeconds(TownySettings.java:661) ~[towny-0.100.4.5.jar:?]
        at towny-0.100.4.5.jar/com.palmergames.bukkit.towny.TownySettings.getPlotManagementSpeed(TownySettings.java:2494) ~[towny-0.100.4.5.jar:?]
        at towny-0.100.4.5.jar/com.palmergames.bukkit.towny.tasks.RepeatingTimerTask.revertAnotherBlockToWilderness(RepeatingTimerTask.java:45) ~[towny-0.100.4.5.jar:?]
        at towny-0.100.4.5.jar/com.palmergames.bukkit.towny.tasks.RepeatingTimerTask.run(RepeatingTimerTask.java:25) ~[towny-0.100.4.5.jar:?]
        at towny-0.100.4.5.jar/com.palmergames.bukkit.towny.scheduling.TaskScheduler.lambda$runRepeating$6(TaskScheduler.java:102) ~[towny-0.100.4.5.jar:?]
        at towny-0.100.4.5.jar/com.palmergames.bukkit.towny.scheduling.impl.PaperTaskScheduler.lambda$runRepeating$2(PaperTaskScheduler.java:50) ~[towny-0.100.4.5.jar:?]
        at io.papermc.paper.threadedregions.scheduler.FoliaGlobalRegionScheduler$GlobalScheduledTask.run(FoliaGlobalRegionScheduler.java:179) ~[paper-1.21.1.jar:?]
        at io.papermc.paper.threadedregions.scheduler.FoliaGlobalRegionScheduler.tick(FoliaGlobalRegionScheduler.java:37) ~[paper-1.21.1.jar:?]
        at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1727) ~[paper-1.21.1.jar:1.21.1-128-d348cb8]
        at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:473) ~[paper-1.21.1.jar:1.21.1-128-d348cb8]
        at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1596) ~[paper-1.21.1.jar:1.21.1-128-d348cb8]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1302) ~[paper-1.21.1.jar:1.21.1-128-d348cb8]
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:329) ~[paper-1.21.1.jar:1.21.1-128-d348cb8]
        at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]