ScriptBlockPlus
ScriptBlockPlus copied to clipboard
Can't backup in windows
Describe the bug/不具合の概要
Run sbp backup will cause exception.
Server/サーバー
Spigot-1.20.4 Azul-17
ScriptBlockPlus v2.2.8
Multiverse-Core v4.3.1-b861
To Reproduce/再現手順
Run command sbp backup, Will cause thise exception. Looks like the auto created path is invalid.
>sbp backup
[Server thread/INFO]: Backup of plugin data is complete.
[Server thread/WARN]: Unexpected exception while parsing console command "sbp backup"
org.bukkit.command.CommandException: Unhandled exception executing command 'sbp' in plugin ScriptBlockPlus v2.2.8
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[spigot-api-1.20.4-R0.1-SNAPSHOT.jar:?]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:149) ~[spigot-api-1.20.4-R0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.v1_20_R3.CraftServer.dispatchCommand(CraftServer.java:887) ~[spigot-1.20.4-R0.1-SNAPSHOT.jar:git-Spigot-e9ec548-98b6c1a]
at org.bukkit.craftbukkit.v1_20_R3.CraftServer.dispatchServerCommand(CraftServer.java:872) ~[spigot-1.20.4-R0.1-SNAPSHOT.jar:git-Spigot-e9ec548-98b6c1a]
at net.minecraft.server.dedicated.DedicatedServer.bk(DedicatedServer.java:400) ~[spigot-1.20.4-R0.1-SNAPSHOT.jar:git-Spigot-e9ec548-98b6c1a]
at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:376) ~[spigot-1.20.4-R0.1-SNAPSHOT.jar:git-Spigot-e9ec548-98b6c1a]
at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1242) ~[spigot-1.20.4-R0.1-SNAPSHOT.jar:git-Spigot-e9ec548-98b6c1a]
at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1054) ~[spigot-1.20.4-R0.1-SNAPSHOT.jar:git-Spigot-e9ec548-98b6c1a]
at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:304) ~[spigot-1.20.4-R0.1-SNAPSHOT.jar:git-Spigot-e9ec548-98b6c1a]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
Caused by: java.nio.file.InvalidPathException: Illegal char <:> at index 44: plugins\ScriptBlockPlus\backup\2024\02\26 14:37:54
at sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182) ~[?:?]
at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153) ~[?:?]
at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77) ~[?:?]
at sun.nio.fs.WindowsPath.parse(WindowsPath.java:92) ~[?:?]
at sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:232) ~[?:?]
at java.io.File.toPath(File.java:2387) ~[?:?]
at com.github.yuttyann.scriptblockplus.file.Backup.<init>(Backup.java:57) ~[?:?]
at com.github.yuttyann.scriptblockplus.command.subcommand.BackupCommand.runCommand(BackupCommand.java:74) ~[?:?]
at com.github.yuttyann.scriptblockplus.command.BaseCommand.execute(BaseCommand.java:104) ~[?:?]
at com.github.yuttyann.scriptblockplus.command.BaseCommand.onCommand(BaseCommand.java:91) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[spigot-api-1.20.4-R0.1-SNAPSHOT.jar:?]
... 9 more