I used this on paperMC 1.16.1 there was no error!
And on version 1.16.2 it stopped running!
I did some digging and as soon as I entered the alphabetic password for FTP the error disappeared!
but I'm not sure if the numbers are the problem!
In general, here is the error log:
[06:32:58 INFO]: [ServerRestorer] Enabling ServerRestorer v1.0.38
[06:32:58 ERROR]: Error occurred while enabling ServerRestorer v1.0.38 (Is it up to date?)
java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
at me.zombie_striker.sr.Main.onEnable(Main.java:182) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) ~[patched_1.16.2.jar:git-Paper-141]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:380) ~[patched_1.16.2.jar:git-Paper-141]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:483) ~[patched_1.16.2.jar:git-Paper-141]
at org.bukkit.craftbukkit.v1_16_R2.CraftServer.enablePlugin(CraftServer.java:499) ~[patched_1.16.2.jar:git-Paper-141]
at org.bukkit.craftbukkit.v1_16_R2.CraftServer.enablePlugins(CraftServer.java:413) ~[patched_1.16.2.jar:git-Paper-141]
at net.minecraft.server.v1_16_R2.MinecraftServer.loadWorld(MinecraftServer.java:468) ~[patched_1.16.2.jar:git-Paper-141]
at net.minecraft.server.v1_16_R2.DedicatedServer.init(DedicatedServer.java:241) ~[patched_1.16.2.jar:git-Paper-141]
at net.minecraft.server.v1_16_R2.MinecraftServer.w(MinecraftServer.java:939) ~[patched_1.16.2.jar:git-Paper-141]
at net.minecraft.server.v1_16_R2.MinecraftServer.lambda$a$0(MinecraftServer.java:177) ~[patched_1.16.2.jar:git-Paper-141]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_261]
[06:32:58 INFO]: [ServerRestorer] Disabling ServerRestorer v1.0.38
I also report this:
[07:00:24 ERROR]: Nag author: 'Zombie_Striker' of 'ServerRestorer' about the following: This plugin is not properly shutting down its async tasks when it is being shut down. This task may throw errors during the final shutdown logs and might not complete before process dies.
I used this on paperMC 1.16.1 there was no error!
And on version 1.16.2 it stopped running!
I did some digging and as soon as I entered the alphabetic password for FTP the error disappeared!
but I'm not sure if the numbers are the problem!
In general, here is the error log:
I also report this:
[07:00:24 ERROR]: Nag author: 'Zombie_Striker' of 'ServerRestorer' about the following: This plugin is not properly shutting down its async tasks when it is being shut down. This task may throw errors during the final shutdown logs and might not complete before process dies.