Skip to content
Elikill58 edited this page Nov 12, 2020 · 1 revision

There is an API

Events

Now, there is only one event : WrongProxyEvent which is called when the player connect without a known proxy. (OnlyProxy feature have to be enabled).

Player datas

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()

IP informations

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.

Need something more ?

You can contact me on discord @Elikill58#0743 or create an issue.

Clone this wiki locally