private void loop(Scanner sc, Server server, ServerNetworkListener listener)
    {
        String line = sc.nextLine();
        if(line.startsWith("/"))
        {
            String command = line.substring(1);
            if(command.equals("stop"))
            {
                running = false;
                server.stop();
                BlockyMainServer.console("Server closed");
                System.exit(0);
            }
            else if(command.equals("list"))
            {
                BlockyClient[] clients = listener.getClients();
                BlockyMainServer.console("Player list");
                BlockyMainServer.console("============");
                for(BlockyClient c : clients)
                {
                    BlockyMainServer.console(c.getName()+"("+c.getID()+") @ "+c.getConnection().getRemoteAddressTCP());
                }
                BlockyMainServer.console("============");
            }
            else if(command.startsWith("kick "))
            {
                String username = command.replace("kick ", "");
                String parts[] = username.split(" ");
                username = parts[0];
                String reason = "Kicked by admin";
                try
                {
                    reason = command.substring(6+username.length());
                }
                catch(Exception e)
                {
//                    e.printStackTrace();
                }
                BlockyClient[] clients = listener.getClients();
                BlockyClient toKick = null;
                for(BlockyClient c : clients)
                {
                    if(c.getName().equals(username))
                    {
                        toKick = c;
                        break;
                    }
                }
                if(toKick != null)
                {
                    NetworkCommons.sendPacketTo(new PacketKick(reason), false, toKick.getConnection());
                    toKick.getConnection().close();
                    BlockyMainServer.console("Player "+toKick.getName()+" has been kicked for: \""+reason+"\"");
                }
                else
                {
                    BlockyMainServer.console("Player "+username+" doesn't exist.");
                }
            }
        }
        else
        {
            server.sendToAllTCP(new PacketChat("{Server} "+line));
        }
    }