public void onPlayerKick(PlayerKickEvent event) {
...
... contains("You logged in from another location")
...
}
Replaced by
contains(LocaleI18n.get("multiplayer.disconnect.duplicate_login"))
It will be good for in different languages.
This works for Paper-Spigot.