public class MiscUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
close(java.lang.AutoCloseable... close) |
static long |
dayAgo() |
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.
|
static long |
monthAgo() |
static long |
now() |
static long |
weekAgo() |
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.lang.AutoCloseable... close)
public static long now()
public static long dayAgo()
public static long weekAgo()
public static long monthAgo()