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
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
formatCommand
(String command, String subCommand, String help) static String
formatCommand
(String requirement, String command, String subCommand, String help) static String[]
static String
formatSubTitle
(String subtitle) static String
formatTitle
(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 String
formatTitle
(String title) static String
list
(Collection<String> args) static String
list
(Collection<String> args, String prefix) static String
static 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.
-