/**
 * Copyright © 2014 tuxed <write@imaginarycode.com>
 * This work is free. You can redistribute it and/or modify it under the
 * terms of the Do What The Fuck You Want To Public License, Version 2,
 * as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.
 */
package com.imaginarycode.minecraft.hubmagic.bungee;

import com.imaginarycode.minecraft.hubmagic.HubMagic;
import com.imaginarycode.minecraft.hubmagic.selectors.ServerSelector;
import lombok.AllArgsConstructor;
import net.md_5.bungee.api.AbstractReconnectHandler;
import net.md_5.bungee.api.config.ServerInfo;
import net.md_5.bungee.api.connection.ProxiedPlayer;

@AllArgsConstructor
public class HubMagicReconnectHandler extends AbstractReconnectHandler {
    private final ServerSelector selector;

    @Override
    protected ServerInfo getStoredServer(ProxiedPlayer player) {
        return selector.selectServer(player);
    }

    @Override
    public final void setServer(ProxiedPlayer player) {

    }

    @Override
    public final void save() {
        HubMagic.getPlugin().getPingManager().shutdown();
    }

    @Override
    public final void close() {

    }
}

@@ -1030,16 +1030,70 @@
 save() %7B
+%0A%0A    %7D%0A%0A    @Override%0A    public final void close() %7B
 %0A       
@@ -1152,61 +1152,7 @@
    %7D
-%0A%0A    @Override%0A    public final void close() %7B%0A%0A    %7D
 %0A%7D%0A

Fix a rather embarrassing bug where HubMagic's pinging functionality would shut down after five minutes.