Want a better Minecraft server? Read about SpigotMC here!
Separate names with a comma.
Discussion in 'Spigot Plugin Development' started by Lovis, Aug 13, 2018 at 12:12 AM.
you logged in from another location
how to solve?
If you are logged in with one client
and you load mc again and log in again with another client, it will kick the first one out if it's the same username.
Don't have the same name as the people already online.
I'm assuming you're trying to see if one account logs in from multiple locations?
You can store the last known IP of the player and then cross check their current IP with the saved one when they join. If they're different, they're in a different location.
Eh, I reply based on the info provided It's so little, I lower the response to generic mc basics.
Upon, PlayerLoginEvent check if the user's name that is attempting to login already exists in the Bukkit#getOnlinePlayers Collection. If true, disallow the user from logging in.