Class FormatUtils

java.lang.Object
fr.Alphart.BAT.Utils.FormatUtils

public class FormatUtils extends Object
  • Constructor Details

    • FormatUtils

      public FormatUtils()
  • Method Details

    • getDuration

      public static String getDuration(long futureTimestamp)
      Get the duration between the given timestamp and the current one
      Parameters:
      timestamp - in milliseconds which must be superior to the current timestamp
      Returns:
      readable duration
    • showFormattedHelp

      public static void showFormattedHelp(List<BATCommand> cmds, net.md_5.bungee.api.CommandSender sender, String helpName)
    • formatNewLine

      public static List<net.md_5.bungee.api.chat.BaseComponent[]> formatNewLine(String message)