public int kickPlayer(String player, String reson)
    {
        int num = getNum(player);
        if (num != -1)
        {
            if (usersocks[num] != null)
            {
                Packet pack = new Packet();
                pack.addHeader((byte) 0x0A, (byte) 0x2F);
                pack.addInt(1, 2, false);
                String[] packandhead = new String[2];
                packandhead[0] = pack.getHeader();
                packandhead[1] = pack.getPacket();
                usersocks[num].write(packandhead[0]);
                usersocks[num].flush();
                usersocks[num].write(packandhead[1]);
                usersocks[num].flush();
                usersocks[num].close();
                this.server.remove(socks[num].getRemoteSocketAddress());
                this.LobbyMsg(reson, 2);
                this.removeuser(player);
                return 1;
            }
            else
            {
                this.removeuser(player);
                this.LobbyMsg(reson, 2);
                return 1;
            }
        }
        else
        {
            return 0;
        }
    }