public int getAllowedGuiRows(Player player) {
    if (player.hasPermission("trade.gui.rows.6"))
      return 6;
    if (player.hasPermission("trade.gui.rows.5"))
      return 5;
    if (player.hasPermission("trade.gui.rows.4"))
      return 4;
    if (player.hasPermission("trade.gui.rows.3"))
      return 3;
    if (player.hasPermission("trade.gui.rows.2")) {
      return 2;
    }
    return plugin.yamlHandler.configYaml.getInt("default-rows", 4);
  }