@Override
    public void onPluginMessageReceived( String channel, Player player, byte[] message ) {
        DataInputStream in = new DataInputStream( new ByteArrayInputStream( message ) );
        String task = null;
        try {
            task = in.readUTF();
            if ( task.equals( "TeleportToPlayer" ) ) {
                TeleportsManager.teleportPlayerToPlayer( in.readUTF(), in.readUTF() );
            }

            if ( task.equals( "TeleportToLocation" ) ) {
                String name = in.readUTF();
                String loc = in.readUTF();
                String locs[] = loc.split( "~!~" );
                TeleportsManager.teleportPlayerToLocation( name, locs[1], Double.parseDouble( locs[2] ), Double.parseDouble( locs[3] ), Double.parseDouble( locs[4] ) );
            }

        } catch ( IOException e ) {
            e.printStackTrace();
        }
        if ( task.equals( "GetVersion" ) ) {
            String name = null;
            try {
                name = in.readUTF();
            } catch ( IOException e ) {

            }
            if ( name != null ) {
                Player p = Bukkit.getPlayer( name );
                p.sendMessage( ChatColor.RED + "Teleports - " + ChatColor.GOLD + BungeeSuiteTeleports.instance.getDescription().getVersion() );
            }
            TeleportsManager.sendVersion();
            Bukkit.getConsoleSender().sendMessage( ChatColor.RED + "Teleports - " + ChatColor.GOLD + BungeeSuiteTeleports.instance.getDescription().getVersion() );
        }
    }