EssentialsX

EssentialsX

2M Downloads

PlayerInteractEvent Error

CraftXpNetwork opened this issue ยท 0 comments

commented

Type of bug

Error in console

/ess dump all output

[11:53:34 INFO]: [Essentials] CONSOLE issued server command: /ess dump all [11:53:34 INFO]: Creating server dump... [11:53:34 INFO]: Error while uploading spawn.yml: plugins/Essentials/spawn.yml

Error log (if applicable)

https://paste.gg/p/anonymous/1e988e5082244db8935d66dd274525b8

Bug description

Randomly the server will begin presenting this error and then require a restart.

The error message seems to indicate an issue related to the interaction between the EssentialsAntiBuild plugin and LuckPerms, which is a permissions plugin. LuckPerms is unable to respond to a Vault API request made on the main server thread, as it requires a database lookup for an offline player. Performing this lookup on the main thread could cause server lag and is not recommended.

Luckperms suggests that Essentials perform Vault calls asynchronously and use methods that accept Player or OfflinePlayer objects instead of usernames. This would offload the Vault API request to a separate thread, preventing server lag.

Steps to reproduce

At the moment, the error occurs whenever, and as soon as a player connects to the server. The error spams and fills the console until they disconnect. On occasion happens without a player online.

Expected behaviour

For the PlayerInteractEvent to pass without an error.

Actual behaviour

Specific PlayerInteractEvent causes errors in console that sometimes requires a restart to resolve.