Class DataStats

java.lang.Object
me.tayebyassine.homestead.commands.operator.subcommands.DataStats

public final class DataStats extends Object
Builds the "property / value" tables printed by the admin sub-commands, so that the underlying data summary is defined in a single place.
  • Method Details

    • infoRows

      public static Object[][] infoRows()
      Returns:
      rows describing the server software and the plugin's database status
    • dataRows

      public static Object[][] dataRows()
      Returns:
      rows describing the amount of data stored for each model
    • combine

      public static Object[][] combine(Object[][]... sections)
      Concatenates multiple row sections into a single two-column table.
      Parameters:
      sections - the row sections to merge
      Returns:
      the combined table rows