Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Console spam with error (/mute command) #609

Open
Evalutik opened this issue Mar 29, 2023 · 2 comments
Open

Console spam with error (/mute command) #609

Evalutik opened this issue Mar 29, 2023 · 2 comments

Comments

@Evalutik
Copy link

When I write /mute, enter the player's nickname and press TAB, the plugin will give an error and spam the console (didn't check other commands)

What version of AdvancedBan (/AdvancedBan) are you using? 2.3.0

What kind of server do you have (Bungeecord/single server)? single server

What server version (/version) are you using? PurPur 1.19.3

Please provide the EXACT steps required to reproduce the problem...

  1. type /mute
  2. push TAB
  3. push TAB

Any error/log post it through pastebin.com and link it here. (Also include /plugins/AdvancedBan/logs/latest.log)

latest.log server file: https://pastebin.com/yvEQT1XT
latest.log plugin file:
[20:14:27] Evalut is deleting a punishment
[20:14:27] Deleted punishment 28 from Evalutik punishment reason: &cnone
(that's it)

Error in console:

[20:15:49 ERROR]: Exception when Evalut attempted to tab complete mute Evalut
org.bukkit.command.CommandException: Unhandled exception during tab completion for command '/mute Evalut ' in plugin AdvancedBan v2.3.0
at org.bukkit.command.PluginCommand.tabComplete(PluginCommand.java:150) ~[purpur-api-1.19.3-R0.1-SNAPSHOT.jar:?]
at org.bukkit.command.Command.tabComplete(Command.java:93) ~[purpur-api-1.19.3-R0.1-SNAPSHOT.jar:?]
at org.bukkit.command.SimpleCommandMap.tabComplete(SimpleCommandMap.java:253) ~[purpur-api-1.19.3-R0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.v1_19_R2.CraftServer.tabCompleteCommand(CraftServer.java:2379) ~[purpur-1.19.3.jar:git-Purpur-1912]
at org.bukkit.craftbukkit.v1_19_R2.CraftServer.tabComplete(CraftServer.java:2351) ~[purpur-1.19.3.jar:git-Purpur-1912]
at org.bukkit.craftbukkit.v1_19_R2.command.BukkitCommandWrapper.getSuggestions(BukkitCommandWrapper.java:74) ~[purpur-1.19.3.jar:git-Purpur-1912]
at com.mojang.brigadier.tree.ArgumentCommandNode.listSuggestions(ArgumentCommandNode.java:71) ~[brigadier-1.0.18.jar:git-Purpur-1912]
at com.mojang.brigadier.CommandDispatcher.getCompletionSuggestions(CommandDispatcher.java:601) ~[purpur-1.19.3.jar:?]
at com.mojang.brigadier.CommandDispatcher.getCompletionSuggestions(CommandDispatcher.java:581) ~[purpur-1.19.3.jar:?]
at net.minecraft.server.network.ServerGamePacketListenerImpl.lambda$handleCustomCommandSuggestions$5(ServerGamePacketListenerImpl.java:939) ~[?:?]
at net.minecraft.server.TickTask.run(TickTask.java:18) ~[purpur-1.19.3.jar:git-Purpur-1912]
at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:153) ~[?:?]
at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[?:?]
at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1368) ~[purpur-1.19.3.jar:git-Purpur-1912]
at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:197) ~[purpur-1.19.3.jar:git-Purpur-1912]
at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:126) ~[?:?]
at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1345) ~[purpur-1.19.3.jar:git-Purpur-1912]
at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1338) ~[purpur-1.19.3.jar:git-Purpur-1912]
at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:136) ~[?:?]
at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:1316) ~[purpur-1.19.3.jar:git-Purpur-1912]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1204) ~[purpur-1.19.3.jar:git-Purpur-1912]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:321) ~[purpur-1.19.3.jar:git-Purpur-1912]
at java.lang.Thread.run(Thread.java:1589) ~[?:?]
Caused by: java.lang.NullPointerException: Cannot invoke "org.bukkit.configuration.ConfigurationSection.getKeys(boolean)" because the return value of "org.bukkit.configuration.file.YamlConfiguration.getConfigurationSection(String)" is null
at me.leoko.advancedban.bukkit.BukkitMethods.getKeys(BukkitMethods.java:115) ~[AdvancedBan-Bundle-2.3.0-RELEASE.jar:?]
at me.leoko.advancedban.utils.tabcompletion.PunishmentTabCompleter.onTabComplete(PunishmentTabCompleter.java:54) ~[AdvancedBan-Bundle-2.3.0-RELEASE.jar:?]
at me.leoko.advancedban.bukkit.BukkitMethods.lambda$setCommandExecutor$2(BukkitMethods.java:169) ~[AdvancedBan-Bundle-2.3.0-RELEASE.jar:?]
at org.bukkit.command.PluginCommand.tabComplete(PluginCommand.java:138) ~[purpur-api-1.19.3-R0.1-SNAPSHOT.jar:?]
... 22 more

Add any additional information below.

image

image

@Evalutik
Copy link
Author

image
all my plugins

@Hopefuls
Copy link
Collaborator

Hopefuls commented Mar 31, 2023

a configuration file seems to be malformed within your advancedban installation. The error does not mention what issue, so I might suggest resetting your configuration while keeping a backup of it to see if thats the issue or not.

Another reason that might cause this is by removing relevant configuration sections. Keep in mind that you still need to have all unused configuration sections still present.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants