Package com.palmergames.bukkit.util
Class ChatTools
java.lang.Object
com.palmergames.bukkit.util.ChatTools
Useful function for use with the Minecraft Server chatbox.
- Version:
- 2.0
- Author:
- Shade (xshade.ca)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringformatCommand(String command, String subCommand, String help) static StringformatCommand(String requirement, String command, String subCommand, String help) static String[]static StringformatSubTitle(String subtitle) static StringformatTitle(TownyObject object) Formats a title for a TownyObject, taking into account that on servers with high max_name_length could end up breaking the mathstatic StringformatTitle(String title) static Stringlist(Collection<String> args) static Stringlist(Collection<String> args, String prefix) static Stringstatic String
-
Constructor Details
-
ChatTools
public ChatTools()
-
-
Method Details
-
listArr
-
list
-
list
-
stripColour
-
formatTitle
Formats a title for a TownyObject, taking into account that on servers with high max_name_length could end up breaking the math- Parameters:
object- TownyObject (town or nation)- Returns:
- a title bar which won't exceed the allowed length.
-
formatTitle
-
formatSubTitle
-
formatCommand
-
formatCommand
-
formatList
- Parameters:
title- - Title of the list,subject- - Subject of the listing.list- - Any list that is in an order of ranking.page- - Already formatted TownySettings.getListPageMsg(page,total) handler.- Returns:
- - Fully formatted output which should be sent to the player.
-