timbru31 / PasswordProtect

🔐 PasswordProtect plugin for CraftBukkit/Spigot
https://dev.bukkit.org/projects/passwordprotect
MIT License
12 stars 6 forks source link

Failed to copy jails.yml #53

Open barkawa opened 3 years ago

barkawa commented 3 years ago

What steps will reproduce the problem?

Install PasswordProtect -> Restart

Expected output

jails.yml is created, or if it's not necessary no exceptions are thrown.

What do you see instead?

see log

Log file of the issue/error

Log ``` 07.05 04:23:18 [Server] INFO Enabling PasswordProtect v3.1.0 07.05 04:23:18 [Server] WARN Failed to copy the default config! 07.05 04:23:18 [Server] INFO java.nio.file.NoSuchFileException: plugins/PasswordProtect/jails.yml 07.05 04:23:18 [Server] INFO at sun.nio.fs.UnixException.translateToIOException(UnixException.java:92) ~[?:?] 07.05 04:23:18 [Server] INFO at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111) ~[?:?] 07.05 04:23:18 [Server] INFO at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116) ~[?:?] 07.05 04:23:18 [Server] INFO at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:219) ~[?:?] 07.05 04:23:18 [Server] INFO at java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:478) ~[?:?] 07.05 04:23:18 [Server] INFO at java.nio.file.Files.newOutputStream(Files.java:220) ~[?:?] 07.05 04:23:18 [Server] INFO at de.dustplanet.passwordprotect.utils.PasswordProtectUtilities.copy(PasswordProtectUtilities.java:72) ~[?:?] 07.05 04:23:18 [Server] INFO at de.dustplanet.passwordprotect.PasswordProtect.onEnable(PasswordProtect.java:81) ~[?:?] 07.05 04:23:18 [Server] INFO at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) ~[patched_1.16.5.jar:git-Paper-648] 07.05 04:23:18 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:380) ~[patched_1.16.5.jar:git-Paper-648] 07.05 04:23:18 [Server] INFO at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:483) ~[patched_1.16.5.jar:git-Paper-648] 07.05 04:23:18 [Server] INFO at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugin(CraftServer.java:501) ~[patched_1.16.5.jar:git-Paper-648] 07.05 04:23:18 [Server] INFO at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugins(CraftServer.java:415) ~[patched_1.16.5.jar:git-Paper-648] 07.05 04:23:18 [Server] INFO at net.minecraft.server.v1_16_R3.MinecraftServer.loadWorld(MinecraftServer.java:591) ~[patched_1.16.5.jar:git-Paper-648] 07.05 04:23:18 [Server] INFO at net.minecraft.server.v1_16_R3.DedicatedServer.init(DedicatedServer.java:281) ~[patched_1.16.5.jar:git-Paper-648] 07.05 04:23:18 [Server] INFO at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1065) ~[patched_1.16.5.jar:git-Paper-648] 07.05 04:23:18 [Server] INFO at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:289) ~[patched_1.16.5.jar:git-Paper-648] 07.05 04:23:18 [Server] INFO at java.lang.Thread.run(Thread.java:834) [?:?] 07.05 04:23:18 [Server] ERROR Cannot load plugins/PasswordProtect/jails.yml 07.05 04:23:18 [Server] INFO java.io.FileNotFoundException: plugins/PasswordProtect/jails.yml (No such file or directory) 07.05 04:23:18 [Server] INFO at java.io.FileInputStream.open0(Native Method) ~[?:?] 07.05 04:23:18 [Server] INFO at java.io.FileInputStream.open(FileInputStream.java:219) ~[?:?] 07.05 04:23:18 [Server] INFO at java.io.FileInputStream.(FileInputStream.java:157) ~[?:?] 07.05 04:23:18 [Server] INFO at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:126) ~[patched_1.16.5.jar:git-Paper-648] 07.05 04:23:18 [Server] INFO at de.dustplanet.passwordprotect.utils.ScalarYamlConfiguration.loadConfiguration(ScalarYamlConfiguration.java:46) ~[?:?] 07.05 04:23:18 [Server] INFO at de.dustplanet.passwordprotect.PasswordProtect.onEnable(PasswordProtect.java:83) ~[?:?] 07.05 04:23:18 [Server] INFO at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) ~[patched_1.16.5.jar:git-Paper-648] 07.05 04:23:18 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:380) ~[patched_1.16.5.jar:git-Paper-648] 07.05 04:23:18 [Server] INFO at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:483) ~[patched_1.16.5.jar:git-Paper-648] 07.05 04:23:18 [Server] INFO at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugin(CraftServer.java:501) ~[patched_1.16.5.jar:git-Paper-648] 07.05 04:23:18 [Server] INFO at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugins(CraftServer.java:415) ~[patched_1.16.5.jar:git-Paper-648] 07.05 04:23:18 [Server] INFO at net.minecraft.server.v1_16_R3.MinecraftServer.loadWorld(MinecraftServer.java:591) ~[patched_1.16.5.jar:git-Paper-648] 07.05 04:23:18 [Server] INFO at net.minecraft.server.v1_16_R3.DedicatedServer.init(DedicatedServer.java:281) ~[patched_1.16.5.jar:git-Paper-648] 07.05 04:23:18 [Server] INFO at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1065) ~[patched_1.16.5.jar:git-Paper-648] 07.05 04:23:18 [Server] INFO at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:289) ~[patched_1.16.5.jar:git-Paper-648] 07.05 04:23:18 [Server] INFO at java.lang.Thread.run(Thread.java:834) [?:?] ```

/version output?

Paper version git-Paper-648 (MC: 1.16.5) (Implementing API version 1.16.5-R0.1-SNAPSHOT)

PasswordProtect version

3.1.0

Please provide any additional information below.

Checklist

sad-creeper[bot] commented 3 years ago

Your issue does not contain a valid output of the /version command and will now be closed and ignored. Please create a new issue, follow the template and include a valid /version output.

timbru31 commented 3 years ago

Weird. Did this work before upgrading Paper?

barkawa commented 3 years ago

This was the first time I used the plugin, but I could try with another Paper version if needed. Also the exception was only thrown on first launch, after a restart it worked fine and jails.yml exists now.

timbru31 commented 3 years ago

Thanks, I’ll try to reproduce this on a clean server install