func (p *players) removeFromConn(conn mnet.Client) error {
	i := -1
	for j, v := range *p {
		if v.conn == conn {
			i = j
			break
		}
	}
	if i == -1 {
		return fmt.Errorf("Could not find Data")
	}
	(*p)[i] = (*p)[len((*p))-1]
	(*p) = (*p)[:len((*p))-1]
	return nil
}
RemoveFromConn removes the Data based on the connection
package channel
import (
	"fmt"
	"log"
	"strconv"
	"time"
	"github.com/dop251/goja"
	_ "github.com/go-sql-driver/mysql"  
	"github.com/prometheus/client_golang/prometheus"
	"github.com/Hucaru/Valhalla/common"
	"github.com/Hucaru/Valhalla/common/opcode"
	"github.com/Hucaru/Valhalla/internal"
	"github.com/Hucaru/Valhalla/mnet"
	"github.com/Hucaru/Valhalla/mpacket"
	"github.com/Hucaru/Valhalla/nx"
)
type players []*player
func (p players) getFromConn(conn mnet.Client) (*player, error) {
	for _, v := range p {
		if v.conn == conn {
			return v, nil
		}
	}
	return new(player), fmt.Errorf("Could not retrieve Data")
}
func (p players) getFromName(name string) (*player, error) {
	for _, v := range p {
		if v.name == name {
			return v, nil
		}
	}
	return new(player), fmt.Errorf("Could not retrieve Data")
}
func (p players) getFromID(id int32) (*player, error) {
	for _, v := range p {
		if v.id == id {
			return v, nil
		}
	}
	return new(player), fmt.Errorf("Could not retrieve Data")
}