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

I got error with an antibot #1958

Closed
radek203 opened this issue Dec 14, 2019 · 6 comments
Closed

I got error with an antibot #1958

radek203 opened this issue Dec 14, 2019 · 6 comments

Comments

@radek203
Copy link

I got error with an antibot
A lot of people were entering the server and I got this error
Standalone server with SQLITE

[18:00:56] [User Authenticator #876/ERROR]: Could not pass event AsyncPlayerPreLoginEvent to AuthMe v5.6.0-SNAPSHOT-b2337
org.bukkit.event.EventException: null
	at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[server.jar:git-Spigot-dcd1643-e60fc34]
	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[server.jar:git-Spigot-dcd1643-e60fc34]
	at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:500) [server.jar:git-Spigot-dcd1643-e60fc34]
	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:482) [server.jar:git-Spigot-dcd1643-e60fc34]
	at net.minecraft.server.v1_12_R1.LoginListener$LoginHandler.fireEvents(LoginListener.java:270) [server.jar:git-Spigot-dcd1643-e60fc34]
	at net.minecraft.server.v1_12_R1.LoginListener$2.run(LoginListener.java:187) [server.jar:git-Spigot-dcd1643-e60fc34]
Caused by: java.lang.NullPointerException
	at fr.xephi.authme.service.AntiBotService.stopProtection(AntiBotService.java:115) ~[?:?]
	at fr.xephi.authme.service.AntiBotService.startProtection(AntiBotService.java:88) ~[?:?]
	at fr.xephi.authme.service.AntiBotService.shouldKick(AntiBotService.java:172) ~[?:?]
	at fr.xephi.authme.listener.OnJoinVerifier.checkAntibot(OnJoinVerifier.java:78) ~[?:?]
	at fr.xephi.authme.listener.PlayerListener.onAsyncPlayerPreLoginEventHighest(PlayerListener.java:146) ~[?:?]
	at sun.reflect.GeneratedMethodAccessor58.invoke(Unknown Source) ~[?:?]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_141]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_141]
	at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302) ~[server.jar:git-Spigot-dcd1643-e60fc34]
	... 5 more
@radek203
Copy link
Author

@ljacqu Will it be fixed?

@ljacqu
Copy link
Member

ljacqu commented Feb 1, 2020

Yes, we'll need to fix it. Thanks for reporting this!

@sgdc3
Copy link
Member

sgdc3 commented Feb 2, 2020

@radek203 can you please try to replicate the issue using the latest dev build?

@sgdc3 sgdc3 added the Status: awaiting answer Marks issues blocked by an open question to the reporter. label Feb 2, 2020
@radek203
Copy link
Author

radek203 commented Feb 2, 2020

@sgdc3 I don't know how it was created, I can only say that a lot of people wanted to enter the server and I manually turned off the protective antibot by command.

@ljacqu ljacqu removed the Status: awaiting answer Marks issues blocked by an open question to the reporter. label Feb 3, 2020
@ljacqu
Copy link
Member

ljacqu commented Feb 3, 2020

Yes, it's a bug on our side. From the code it's quite apparent that it's not thread safe, not to mention that we haven't touched the antibot feature since 2018...

@sgdc3
Copy link
Member

sgdc3 commented Feb 4, 2020

@ljacqu I fixed the issue in #1992

@radek203 radek203 closed this as completed May 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants