package org.kwstudios.play.bungeelobby.listener;

import org.bukkit.entity.Player;
import org.bukkit.plugin.messaging.PluginMessageListener;
import org.kwstudios.play.bungeelobby.loader.PluginLoader;

public class MessageListener implements PluginMessageListener {

	public MessageListener() {
		PluginLoader.getInstance().getServer().getMessenger().registerIncomingPluginChannel(PluginLoader.getInstance(),
				"kwLobby", this);
	}

	@Override
	public void onPluginMessageReceived(String channel, Player player, byte[] message) {

	}

}

@@ -194,16 +194,106 @@
 oader;%0A%0A
+import com.google.common.io.ByteArrayDataInput;%0Aimport com.google.common.io.ByteStreams;%0A%0A
 public c
@@ -614,15 +614,201 @@
 sage) %7B%0A
+%09%09if (channel.equals(%22kwLobby%22))%7B%0A%09%09%09ByteArrayDataInput in = ByteStreams.newDataInput(message);%0A%09%09%09String subchannel = in.readUTF();%0A%09%09%09if(subchannel.equals(%22signupdate%22))%7B%0A%09%09%09%09%0A%09%09%09%7D%0A%09%09%7D
 %0A%09%7D%0A%0A%7D%0A

Extend MessageListener with some basic stuff