maybe this code compiled in plugin.jar fix this POBLEM Code: @Override public void onPlayerKick(PlayerKickEvent event) { if (event.getReason() == "Logged in from another location.") { event.setCancelled(true); } } @Override public void onPlayerLogin(PlayerLoginEvent event) { for (Player p : plugin.getServer().getOnlinePlayers()) { if (p != event.getPlayer() && p.getName().equalsIgnoreCase(event.getPlayer().getName())) { event.setResult(Result.KICK_OTHER); event.setKickMessage("Another player with your name is already on this server!"); break; } } }
Thank you for the code in the OP. I used some of it in my plugin to fix an issue I was having. The simplest solution is probably the correct one, this is something I should remember for the future!
This thread was last active 6 months ago Just do Online-Mode: true Looking at the code, at least half of it doesn't work
Nope. Bumping is not disallowed, as evidenced by this. One bump after 3 days of inactivity is far from unreasonable.
Well, honestly, no. I was skimming around the forums and saw someone say something incorrect. I neglected to check the date, replied, and moved on because I had lost interest in the thread. Still, that was dumb, my bad.