private boolean isCommand(String command) {
        String[] c = command.split(" ");
        String cmdname = c[0];
        if(cmdname.startsWith("/")) {
            if(cmdname.equals("/exit")) {
                System.exit(1);
            } else if(cmdname.equals("/setname")) {
                String oldname = inputplayer.getName();
                inputplayer.setName(c[1]);
                addLine(oldname + " set his name to " + c[1], Color.green, false, false);
            }else {
                addLine("Unknown command!", Color.red, false, true);
            }
            return true;
        }
        return false;
    }