package net.md_5.bungee.module.reconnect.yaml;

import net.md_5.bungee.api.plugin.Plugin;

public class PluginYaml extends Plugin
{

    @Override
    public void onEnable()
    {
        getProxy().setReconnectHandler( new YamlReconnectHandler() );
    }
}

@@ -41,16 +41,64 @@
 .yaml;%0A%0A
+import net.md_5.bungee.api.config.ListenerInfo;%0A
 import n
@@ -131,16 +131,16 @@
 Plugin;%0A
-
 %0Apublic 
@@ -221,16 +221,267 @@
 )%0A    %7B%0A
+        // TODO: Abstract this for other reconnect modules%0A        for ( ListenerInfo info : getProxy().getConfig().getListeners() )%0A        %7B%0A            if ( !info.isForceDefault() && getProxy().getReconnectHandler() == null )%0A            %7B%0A        
         
@@ -542,16 +542,63 @@
 er() );%0A
+                break;%0A            %7D%0A        %7D%0A
     %7D%0A%7D%0A

Bring reconnect yaml handler setting in line with what we had before (only create if needed)