public class Util extends Object
| Constructor and Description |
|---|
Util() |
| Modifier and Type | Method and Description |
|---|---|
static <E> List<E> |
asList(E... elements)
Converts a variable argument array into a List.
|
static int |
getJavaVersion()
Gets the currently running major Java version.
|
static List<org.bukkit.entity.Player> |
getOnlinePlayers()
Gets a list of currently online Players.
|
static boolean |
isUsingSpigot()
Whether or not this server is running Spigot.
|
public static List<org.bukkit.entity.Player> getOnlinePlayers()
@SafeVarargs public static <E> List<E> asList(E... elements)
elements - Array to convertpublic static boolean isUsingSpigot()
public static int getJavaVersion()
Copyright © 2012–2017 Comphenix and dmulloy2. Licensed under the GNU GPL v2.