Package com.sk89q.commandbook.util
Class ServerUtil
java.lang.Object
com.sk89q.commandbook.util.ServerUtil
public class ServerUtil
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description ServerUtil() -
Method Summary
Modifier and Type Method Description static java.lang.StringgetOnlineList(java.util.Collection<? extends org.bukkit.entity.Player> online, org.bukkit.ChatColor color)Returns a comma-delimited list of players.static java.lang.StringgetOnlineList(org.bukkit.entity.Player[] online)static java.lang.StringgetOnlineList(org.bukkit.entity.Player[] online, org.bukkit.ChatColor color)Deprecated.static java.lang.StringtoInetAddressString(org.bukkit.command.CommandSender sender)Gets the IP address of a command sender.
-
Constructor Details
-
ServerUtil
public ServerUtil()
-
-
Method Details
-
getOnlineList
public static java.lang.String getOnlineList(org.bukkit.entity.Player[] online) -
getOnlineList
@Deprecated public static java.lang.String getOnlineList(org.bukkit.entity.Player[] online, org.bukkit.ChatColor color)Deprecated.Returns a comma-delimited list of players.- Parameters:
online-color-- Returns:
-
getOnlineList
public static java.lang.String getOnlineList(java.util.Collection<? extends org.bukkit.entity.Player> online, org.bukkit.ChatColor color)Returns a comma-delimited list of players.- Parameters:
online-color-- Returns:
-
toInetAddressString
public static java.lang.String toInetAddressString(org.bukkit.command.CommandSender sender)Gets the IP address of a command sender.- Parameters:
sender- The sender to get an address for- Returns:
- The address string of the sender
-