TheoBong / PunishmentsX

GUI Based minecraft punishments plugin.
MIT License
2 stars 4 forks source link

Config.yml #5

Closed DanniDev1 closed 2 years ago

DanniDev1 commented 2 years ago

[22:19:31] [Server thread/ERROR]: Cannot load plugins/PunishmentsX/config.yml org.bukkit.configuration.InvalidConfigurationException: unacceptable character '?' (0xD83D) special characters are not allowed in "'string'", position 1051 at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:57) ~[patched_1.8.8.jar:git-PaperSpigot-"8230aa68e"] at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:226) ~[patched_1.8.8.jar:git-PaperSpigot-"8230aa68e"] at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:169) ~[patched_1.8.8.jar:git-PaperSpigot-"8230aa68e"] at org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(YamlConfiguration.java:180) [patched_1.8.8.jar:git-PaperSpigot-"8230aa68e"] at org.bukkit.plugin.java.JavaPlugin.reloadConfig(JavaPlugin.java:188) [patched_1.8.8.jar:git-PaperSpigot-"8230aa68e"] at org.bukkit.plugin.java.JavaPlugin.getConfig(JavaPlugin.java:162) [patched_1.8.8.jar:git-PaperSpigot-"8230aa68e"] at io.github.punishmentsx.PunishmentsX.onEnable(PunishmentsX.java:54) [PunishmentsX.jar:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) [patched_1.8.8.jar:git-PaperSpigot-"8230aa68e"] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:332) [patched_1.8.8.jar:git-PaperSpigot-"8230aa68e"] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:407) [patched_1.8.8.jar:git-PaperSpigot-"8230aa68e"] at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugin(CraftServer.java:359) [patched_1.8.8.jar:git-PaperSpigot-"8230aa68e"] at org.bukkit.craftbukkit.v1_8_R3.CraftServer.enablePlugins(CraftServer.java:318) [patched_1.8.8.jar:git-PaperSpigot-"8230aa68e"] at net.minecraft.server.v1_8_R3.MinecraftServer.s(MinecraftServer.java:408) [patched_1.8.8.jar:git-PaperSpigot-"8230aa68e"] at net.minecraft.server.v1_8_R3.MinecraftServer.k(MinecraftServer.java:372) [patched_1.8.8.jar:git-PaperSpigot-"8230aa68e"] at net.minecraft.server.v1_8_R3.MinecraftServer.a(MinecraftServer.java:327) [patched_1.8.8.jar:git-PaperSpigot-"8230aa68e"] at net.minecraft.server.v1_8_R3.DedicatedServer.init(DedicatedServer.java:267) [patched_1.8.8.jar:git-PaperSpigot-"8230aa68e"] at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:563) [patched_1.8.8.jar:git-PaperSpigot-"8230aa68e"] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_292] Caused by: org.yaml.snakeyaml.reader.ReaderException: special characters are not allowed at org.yaml.snakeyaml.reader.StreamReader.checkPrintable(StreamReader.java:67) ~[patched_1.8.8.jar:git-PaperSpigot-"8230aa68e"] at org.yaml.snakeyaml.reader.StreamReader.(StreamReader.java:47) ~[patched_1.8.8.jar:git-PaperSpigot-"8230aa68e"] at org.yaml.snakeyaml.Yaml.load(Yaml.java:369) ~[patched_1.8.8.jar:git-PaperSpigot-"8230aa68e"] at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:55) ~[patched_1.8.8.jar:git-PaperSpigot-"8230aa68e"] ... 17 more

Can you please make special characters are allowed in the config? Also can you make the warn option in /p ? Can you also make bypass permission for staff to bypass the chat filter?

TheoBong commented 2 years ago

Unicode characters should be allowed in config. Please post your config in a pastebin and link it here.

To warn in punish menu, add the punishment, "warn:permanent"

I will add chat filter bypass permission for staff in next update.

DanniDev1 commented 2 years ago

Unicode characters should be allowed in config. Please post your config in a pastebin and link it here.

To warn in punish menu, add the punishment, "warn:permanent"

I will add chat filter bypass permission for staff in the next update.

I tried "æ", "ø", "å" and they do not work.

Thanks, I've added the warn menu myself.

Are you also able to setup permission for a menu etc Severity1, Severity 2, Severity 3. so only staff with etc punish.Severity.2 can use Severity 2 and is there a way to wipe the punishment history? or delete a single one?

Thank you! :D

TheoBong commented 2 years ago

I'm not sure how I could add more support for unicode characters, seems like an issue with Bukkit not supporting those characters. You should be able to use any UTF-8 characters.

I could add a permission option in the config for seeing a certain entry in the punish menu. Why would you want to wipe/delete punishment history?

DanniDev1 commented 2 years ago

I'm not sure how I could add more support for unicode characters, seems like an issue with Bukkit not supporting those characters. You should be able to use any UTF-8 characters.

I could add a permission option in the config for seeing a certain entry in the punish menu. Why would you want to wipe/delete punishment history?

[18:57:47] [Thread-72/ERROR]: Could not pass event AsyncPlayerPreLoginEvent to PunishmentsX vgit-PunishmentsX-f5f11fe org.bukkit.event.EventException: null at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302) ~[patched_1.8.8.jar:git-PaperSpigot-"8230aa68e"] at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:74) ~[patched_1.8.8.jar:git-PaperSpigot-"8230aa68e"] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[patched_1.8.8.jar:git-PaperSpigot-"8230aa68e"] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:517) [patched_1.8.8.jar:git-PaperSpigot-"8230aa68e"] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:499) [patched_1.8.8.jar:git-PaperSpigot-"8230aa68e"] at net.minecraft.server.v1_8_R3.LoginListener$LoginHandler.fireEvents(LoginListener.java:248) [patched_1.8.8.jar:git-PaperSpigot-"8230aa68e"] at net.minecraft.server.v1_8_R3.LoginListener$2.run(LoginListener.java:172) [patched_1.8.8.jar:git-PaperSpigot-"8230aa68e"] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_282] Caused by: java.lang.NullPointerException at java.util.UUID.fromString(UUID.java:192) ~[?:1.8.0_282] at io.github.punishmentsx.database.sequel.SQL.loadPunishment(SQL.java:174) ~[?:?] at io.github.punishmentsx.database.sequel.SQL.loadProfile(SQL.java:122) ~[?:?] at io.github.punishmentsx.profiles.ProfileManager.find(ProfileManager.java:44) ~[?:?] at io.github.punishmentsx.listeners.JoinListener.onPlayerPreLogin(JoinListener.java:45) ~[?:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_282] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_282] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_282] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_282] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:300) ~[patched_1.8.8.jar:git-PaperSpigot-"8230aa68e"] ... 7 more [18:57:47] [Thread-72/INFO]: UUID of player Danni is 55733f30-8907-4851-8af3-420f6f255856 [18:57:47] [Server thread/INFO]: Danni lost connection: ?cYour profile did not load properly, please relog. [18:57:47] [Server thread/INFO]: Danni[/IP] logged in with entity id 2848 at ([world]282.5, 83.0, -325.5)

Myself and my players are unable to join the server, how can I fix?

The issue is fixed when I delete the database file and restart the server

TheoBong commented 2 years ago

I'm not sure how I could add more support for unicode characters, seems like an issue with Bukkit not supporting those characters. You should be able to use any UTF-8 characters. I could add a permission option in the config for seeing a certain entry in the punish menu. Why would you want to wipe/delete punishment history?

[18:57:47] [Thread-72/ERROR]: Could not pass event AsyncPlayerPreLoginEvent to PunishmentsX vgit-PunishmentsX-f5f11fe org.bukkit.event.EventException: null at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302) ~[patched_1.8.8.jar:git-PaperSpigot-"8230aa68e"] at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:74) ~[patched_1.8.8.jar:git-PaperSpigot-"8230aa68e"] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[patched_1.8.8.jar:git-PaperSpigot-"8230aa68e"] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:517) [patched_1.8.8.jar:git-PaperSpigot-"8230aa68e"] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:499) [patched_1.8.8.jar:git-PaperSpigot-"8230aa68e"] at net.minecraft.server.v1_8_R3.LoginListener$LoginHandler.fireEvents(LoginListener.java:248) [patched_1.8.8.jar:git-PaperSpigot-"8230aa68e"] at net.minecraft.server.v1_8_R3.LoginListener$2.run(LoginListener.java:172) [patched_1.8.8.jar:git-PaperSpigot-"8230aa68e"] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_282] Caused by: java.lang.NullPointerException at java.util.UUID.fromString(UUID.java:192) ~[?:1.8.0_282] at io.github.punishmentsx.database.sequel.SQL.loadPunishment(SQL.java:174) ~[?:?] at io.github.punishmentsx.database.sequel.SQL.loadProfile(SQL.java:122) ~[?:?] at io.github.punishmentsx.profiles.ProfileManager.find(ProfileManager.java:44) ~[?:?] at io.github.punishmentsx.listeners.JoinListener.onPlayerPreLogin(JoinListener.java:45) ~[?:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_282] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_282] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_282] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_282] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:300) ~[patched_1.8.8.jar:git-PaperSpigot-"8230aa68e"] ... 7 more [18:57:47] [Thread-72/INFO]: UUID of player Danni is 55733f30-8907-4851-8af3-420f6f255856 [18:57:47] [Server thread/INFO]: Danni lost connection: ?cYour profile did not load properly, please relog. [18:57:47] [Server thread/INFO]: Danni[/IP] logged in with entity id 2848 at ([world]282.5, 83.0, -325.5)

Myself and my players are unable to join the server, how can I fix?

The issue is fixed when I delete the database file and restart the server

That happens when you update from a database file generated by an old version of the plugin.

DanniDev1 commented 2 years ago

I have the newest version of the plugin from the spigot page.

DanniDev1 commented 2 years ago

How to i read the data.db file?

Do you have some other way to contact you for support? a discord server?

I switched to "mongo" and now the plugin doesn't seem to work?

Are you also able to make it work with litebans?

TheoBong commented 2 years ago

I have the newest version of the plugin from the spigot page.

Delete your data.db file.

How to i read the data.db file?

Do you have some other way to contact you for support? a discord server?

I switched to "mongo" and now the plugin doesn't seem to work?

Are you also able to make it work with litebans?

If you switch to mongo, you need have a mongodb database to connect to. This is a full fledged punishments plugin, not just a GUI for litebans.

DanniDev1 commented 2 years ago

I have the newest version of the plugin from the spigot page.

Delete your data.db file.

How to i read the data.db file? Do you have some other way to contact you for support? a discord server? I switched to "mongo" and now the plugin doesn't seem to work? Are you also able to make it work with litebans?

If you switch to mongo, you need have a mongodb database to connect to. This is a full fledged punishments plugin, not just a GUI for litebans.

Okay, so I'll switch back to SQlite, but that just mess up the server when ever they get a punishment their profile won't load correctly it says and won't let them join.

TheoBong commented 2 years ago

I have the newest version of the plugin from the spigot page.

Delete your data.db file.

How to i read the data.db file? Do you have some other way to contact you for support? a discord server? I switched to "mongo" and now the plugin doesn't seem to work? Are you also able to make it work with litebans?

If you switch to mongo, you need have a mongodb database to connect to. This is a full fledged punishments plugin, not just a GUI for litebans.

Okay, so I'll switch back to SQlite, but that just mess up the server when ever they get a punishment their profile won't load correctly it says and won't let them join.

You deleted your data.db file right? I'll look into the issue in a bit.

DanniDev1 commented 2 years ago

Yes, i deleted the data.db, but i still run into the issue.

TheoBong commented 2 years ago

Yes, i deleted the data.db, but i still run into the issue.

I can't seem to reproduce the issue. Try completely reinstalling the plugin (Delete PunishmentsX folder & the jar) and see if that fixes it. If it doesn't fix, open another issue using the bug report template.

DanniDev1 commented 2 years ago

Yes, i deleted the data.db, but i still run into the issue.

I can't seem to reproduce the issue. Try completely reinstalling the plugin (Delete PunishmentsX folder & the jar) and see if that fixes it. If it doesn't fix, open another issue using the bug report template.

Can I send you the config I have?

TheoBong commented 2 years ago

Yes, i deleted the data.db, but i still run into the issue.

I can't seem to reproduce the issue. Try completely reinstalling the plugin (Delete PunishmentsX folder & the jar) and see if that fixes it. If it doesn't fix, open another issue using the bug report template.

Can I send you the config I have?

Sure

DanniDev1 commented 2 years ago

https://www.toptal.com/developers/hastebin/zawosorape.pl

TheoBong commented 2 years ago

https://www.toptal.com/developers/hastebin/zawosorape.pl

I don't see a blatant issue in this config. Try completely reinstalling the plugin (Delete PunishmentsX folder & the jar) and see if that fixes it. If it doesn't fix, open another issue using the bug report template.

TheoBong commented 2 years ago

Continued in #6