Skip to content

Hide player count spamming warning #290

@kikMine0

Description

@kikMine0

making hide-player-count = true will give an exception on ping

[WARNING] An exceptionCaught() event was fired, and it reached at the tail of the pipeline. It usually means the last handler in the pipeline did not handle the exception.
java.lang.NullPointerException: Cannot invoke "net.md_5.bungee.api.ServerPing$Players.getMax()" because the return value of "net.md_5.bungee.api.ServerPing.getPlayers()" is nul

Im using bungeecord, with no backend server for now

Fix:
Add a try-catch error when getPlayers() is null

(If for any reason i said smthing wrong srry, im still kinda new into bungee plugins)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingunconfirmedIssue not yet confirmed, needs triage

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions