Class Like


public class Like extends SubCommand
  • Constructor Details

  • Method Details

    • getLikesPercentage

      public static double getLikesPercentage(Plot plot)
      Get the likes to dislike ratio of a plot as a percentage (in decimal form)
      Parameters:
      plot - plot
      Returns:
      likes to dislike ratio, returns zero if the plot has no likes
    • handleLike

      protected boolean handleLike(PlotPlayer<?> player, String[] args, boolean like)
    • onCommand

      public boolean onCommand(PlotPlayer<?> player, String[] args)
      Specified by:
      onCommand in class SubCommand
    • tab

      public Collection<Command> tab(PlotPlayer<?> player, String[] args, boolean space)
      Overrides:
      tab in class Command