Package fr.Alphart.BAT.Utils
Class FormatUtils
java.lang.Object
fr.Alphart.BAT.Utils.FormatUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<net.md_5.bungee.api.chat.BaseComponent[]>
formatNewLine
(String message) static String
getDuration
(long futureTimestamp) Get the duration between the given timestamp and the current onestatic void
showFormattedHelp
(List<BATCommand> cmds, net.md_5.bungee.api.CommandSender sender, String helpName)
-
Constructor Details
-
FormatUtils
public FormatUtils()
-
-
Method Details
-
getDuration
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
-