public class MiscUtils extends Object
Constructor and Description |
---|
MiscUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
checkVersion()
Checks the version and returns response String.
|
static String |
checkVersion(String currentVersion,
String gitVersion) |
static Set<org.bukkit.OfflinePlayer> |
getMatchingDisplaynames(String search)
Get matching playernames from the offlineplayers
|
static String |
getPlayerName(String[] args,
org.bukkit.command.CommandSender sender) |
static String |
getPlayerName(String[] args,
org.bukkit.command.CommandSender sender,
Permissions perm)
Used by the inspect command.
|
public static String checkVersion()
public static String checkVersion(String currentVersion, String gitVersion) throws NumberFormatException
currentVersion
- gitVersion
- NumberFormatException
public static String getPlayerName(String[] args, org.bukkit.command.CommandSender sender)
args
- sender
- public static String getPlayerName(String[] args, org.bukkit.command.CommandSender sender, Permissions perm)
args
- Arguments of a command, must not be empty if console sender.sender
- Command senderCopyright © 2017. All rights reserved.