lucko / BungeeGuard

A plugin-based security/firewall solution for BungeeCord and Velocity proxies.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to retrieve domain hostname

heychazza opened this issue · comments

Hi there,

I’m the developer behind the largest Minecraft analytics platform, we have a domain tracking feature that tells creators where users come from.

we currently track this via https://github.com/track/plugin/blob/main/bungeecord/src/main/java/net/analyse/plugin/event/PlayerJoinListener.java#L21-L29. This works perfectly for ordinary networks that aren’t running BungeeGuard.

However, we currently face an issue where the hostname returns a strange string with the IP BungeeGuard token etc, which isn’t helpful.

For Example:

All that needs to be returned is the domain, if an API exists I’d be happy to hook into it accordingly.

Thanks

I'm not super familiar with BungeeGuard so there could be some sort of API I am missing but a potential workaround may be running the LoginEvent on LOW event priority since BungeeGuard doesn't specify an event priority so it would just be NORMAL.