setPlayerConnection(nm, cp.getHandle().playerConnection);
Field handlerList = null;
try {
handlerList = ServerConnection.class.getDeclaredField("c");
handlerList.setAccessible(true);
ServerConnection sc = ((DedicatedServer) MinecraftServer.getServer()).ag();
List rhandlerList = (List) handlerList.get(sc);
rhandlerList.remove(oldHandler);
rhandlerList.add(handler);
} catch (NoSuchFieldException ex) {
Logger.getLogger(SpoutCraftPlayer.class.getName()).log(Level.SEVERE, null, ex);