Package com.minigameworld.util
Class Utils
java.lang.Object
com.minigameworld.util.Utils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
callEvent(org.bukkit.event.Event event)
Call event and return event is cancelled or not
If event is not Cancellable, return always falsestatic boolean
static void
static File
static org.bukkit.Location
Default minigame locationstatic File
static File
static File
getServerFile(String file)
static void
static void
static String
static void
registerEventListener(org.bukkit.event.Listener listener)
static void
static void
static void
sendMsg(org.bukkit.entity.Player p, net.md_5.bungee.api.chat.BaseComponent compo)
static void
sendMsg(org.bukkit.entity.Player p, net.md_5.bungee.api.chat.BaseComponent compo, boolean prefix)
static void
static void
static void
sendMsgs(net.md_5.bungee.api.chat.BaseComponent compo)
static void
sendMsgs(net.md_5.bungee.api.chat.BaseComponent compo, boolean prefix)
static void
static void
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
messagePrefix
-
sendMsg
-
sendMsg
-
sendMsgs
-
sendMsgs
-
sendMsg
public static void sendMsg(org.bukkit.entity.Player p, net.md_5.bungee.api.chat.BaseComponent compo) -
sendMsg
public static void sendMsg(org.bukkit.entity.Player p, net.md_5.bungee.api.chat.BaseComponent compo, boolean prefix) -
sendMsgs
public static void sendMsgs(net.md_5.bungee.api.chat.BaseComponent compo) -
sendMsgs
public static void sendMsgs(net.md_5.bungee.api.chat.BaseComponent compo, boolean prefix) -
info
-
warning
-
debug
-
checkPerm
-
getServerFile
-
getDataFolder
-
getMiniGamesDir
-
getMessagesDir
-
syncMapKeys
-
callEvent
public static boolean callEvent(org.bukkit.event.Event event)Call event and return event is cancelled or not
If event is not Cancellable, return always false- Parameters:
event
- Calling event- Returns:
- True if event is cancelled
-
registerEventListener
public static void registerEventListener(org.bukkit.event.Listener listener) -
getDefaultLocation
public static org.bukkit.Location getDefaultLocation()Default minigame location- Returns:
- default minigame location
-
loadTemplateWorlds
public static void loadTemplateWorlds()
-