public class MiscUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
close(java.lang.AutoCloseable... close) |
static void |
close(java.io.Closeable... close) |
static java.lang.String |
getPlayerName(java.lang.String[] args,
com.djrapitops.plugin.command.Sender sender)
Get a players name that matches the given arguments or name of the sender.
|
static java.lang.String |
getPlayerName(java.lang.String[] args,
com.djrapitops.plugin.command.Sender sender,
Permissions perm)
Used by the inspect command.
|
public static java.lang.String getPlayerName(java.lang.String[] args, com.djrapitops.plugin.command.Sender sender)
args
- Arguments of command.sender
- Sender of commandpublic static java.lang.String getPlayerName(java.lang.String[] args, com.djrapitops.plugin.command.Sender sender, Permissions perm)
args
- Arguments of a command, must not be empty if console sender.sender
- Command senderperm
- Permission to use when checking.public static void close(java.io.Closeable... close)
public static void close(java.lang.AutoCloseable... close)