alphartdev / BungeeAdminTools

BungeeCord modular administration plugin
http://www.spigotmc.org/resources/bungee-admin-tools.444/
Other
25 stars 64 forks source link

IPv6 Support #63

Open Trikolon opened 6 years ago

Trikolon commented 6 years ago

The plugin doesn't seem to support IPv6 connections. I've just tested this by connecting to a BungeeCord instance via IPv6: image

Trikolon commented 6 years ago

Gained some more insight: The error occurs because of this check for valid ip: https://github.com/alphartdev/BungeeAdminTools/blob/master/src/main/java/fr/Alphart/BAT/Modules/Ban/Ban.java#L216

Since the regex for the IP check only matches IPv4 it will treat IPv6 adresses as "players" and will send those to the Mojang API. The API returns a null pointer, hence the exception.

yannicklamprecht commented 6 years ago

@Trikolon You mean REGEX recognises only ipv4 ? So v6 is detected as a player.