Class Util

java.lang.Object
com.comphenix.protocol.utility.Util

public class Util extends Object
General utility class
Author:
dmulloy2
  • Constructor Details

    • Util

      public Util()
  • Method Details

    • getOnlinePlayers

      public static List<org.bukkit.entity.Player> getOnlinePlayers()
      Gets a list of currently online Players.
      Returns:
      The list
    • asList

      @SafeVarargs public static <E> List<E> asList(E... elements)
      Converts a variable argument array into a List.
      Parameters:
      elements - Array to convert
      Returns:
      The list
    • classExists

      public static boolean classExists(String className)
    • isUsingSpigot

      public static boolean isUsingSpigot()
      Whether or not this server is running Spigot or a Spigot fork. This works by checking if the SpigotConfig exists, which should be true of all forks.
      Returns:
      True if it is, false if not.