-
Notifications
You must be signed in to change notification settings - Fork 0
API
Elikill58 edited this page Nov 12, 2020
·
1 revision
There is an API
Now, there is only one event : WrongProxyEvent which is called when the player connect without a known proxy. (OnlyProxy feature have to be enabled).
There is :
- IpPlayer for online players
- IpOfflinePlayer for offline players
Both are extends IpPlayerAbstract (can be cast).
They contains player informations such as IP or last connections.
You can get them thanks to IpPlayer.getIpPlayer() or IpOfflinePlayer.getIpPlayer()
If you want to get IP of player, you have to get player data. Then, you will see :
- The basic IP (player one)
- The proxy IP (Bungeecord/Waterfall/... IP)
- The FAI IP (with the FAI name)
To get full IP informations, you can do IpPlayer#getIP. The "IP" Object is composed of an HashMap which collect all informations.
You have to call IP#getIpInfos(IpInfos) to know what you want.
You can contact me on discord @Elikill58#0743 or create an issue.