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.String getOnlineList​(java.util.Collection<? extends org.bukkit.entity.Player> online, org.bukkit.ChatColor color)
    Returns a comma-delimited list of players.
    static java.lang.String getOnlineList​(org.bukkit.entity.Player[] online)  
    static java.lang.String getOnlineList​(org.bukkit.entity.Player[] online, org.bukkit.ChatColor color)
    Deprecated.
    static java.lang.String toInetAddressString​(org.bukkit.command.CommandSender sender)
    Gets the IP address of a command sender.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • 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