public class Universal extends Object
| Constructor and Description |
|---|
Universal() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
broadcastLeoko()
Broadcast leoko boolean.
|
String |
callConnection(String name,
String ip)
Call connection string.
|
void |
debug(Object msg)
Debug.
|
void |
debugException(Exception exc) |
void |
debugSqlException(SQLException ex)
Debug.
|
static Universal |
get()
Get universal.
|
String |
getFromURL(String surl)
Gets from url.
|
com.google.gson.Gson |
getGson()
Gets gson.
|
Map<String,String> |
getIps()
Gets ips.
|
MethodInterface |
getMethods()
Gets methods.
|
boolean |
hasPerms(Object player,
String perms)
Has perms boolean.
|
boolean |
isBungee()
Is bungee boolean.
|
boolean |
isExemptPlayer(String name)
Is exempt player boolean.
|
boolean |
isMuteCommand(String cmd)
Is mute command boolean.
|
void |
log(String msg)
Log.
|
void |
setup(MethodInterface mi)
Initially sets up the plugin.
|
void |
shutdown()
Shutdown.
|
boolean |
useRedis()
Use redis boolean.
|
void |
useRedis(boolean use)
Use redis.
|
public static Universal get()
public void setup(MethodInterface mi)
mi - the mipublic void shutdown()
public MethodInterface getMethods()
public boolean isBungee()
public String getFromURL(String surl)
surl - the surlpublic boolean isMuteCommand(String cmd)
cmd - the cmdpublic boolean isExemptPlayer(String name)
name - the namepublic boolean broadcastLeoko()
public String callConnection(String name, String ip)
name - the nameip - the ippublic boolean hasPerms(Object player, String perms)
player - the playerperms - the permspublic void useRedis(boolean use)
use - the usepublic boolean useRedis()
public void log(String msg)
msg - the msgpublic void debug(Object msg)
msg - the msgpublic void debugException(Exception exc)
public void debugSqlException(SQLException ex)
ex - the expublic com.google.gson.Gson getGson()
Copyright © 2020. All rights reserved.