Query Java Player IP?

En
- in Plugins
15

I'm currently writing a Minecraft plugin.

Now I'm wondering how to query the IP address of the player (eg "20.123.123.21").

fr

The question is… Why do you want to do that?

En

So that players z.b. Can't handle a ban.

Me

There's the already integrated in MC ip-ban command…

Me

[Player object] .getAddress

En

But not if you want to write a ban system yourself.

Ap

You do that like this:

player.getAddress () getAddress () getHostAddress ().;

fr

Why do you want to write something yourself, what already exists? Too much time?

Me

Sure it's possible.

You can also easily automate the MC tools in your plugin…

Oh and IP spell anyone can handle…

En

Not everyone. So yes, every human is capable, but many do not know how these z.b. Use a VPN.

fr

Why should you need a VPN for this?

En

Public plugins do not have the things we need.
The "normal" ban system is too unprofessional.

But thanks.

Ha

"… Many do not know how to use a VPN, for example."

I think so, that if really come back to the server, he is quite able to search YouTube for "Minecraft IP Ban" and find it as well.

Since it would be much easier to have an AntiProxy / AntiVPN plugin or?

En

"It would be much easier to have an AntiProxy / AntiVPN plugin, right?"

Yes you are right

That with the YouTube:

Many Minecraft players are very young and too lazy (or so) to search on YouTube. You can tell that on every server with a young community.

Ha

Many Minecraft players are very young and too lazy (or so) to search on YouTube. You can tell that on every server with a young community.

That's true.

But as I said before, if someone wants to get back to the server, he'll get it, it does not matter if it's young or old.

Ha

I once selected an AntiVPN plugin

https://www.spigotmc.org/...vpn.58291/ maybe that will bring you something.