Package com.minigameworld.util
Class Utils
java.lang.Object
com.minigameworld.util.Utils
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic booleancallEvent(org.bukkit.event.Event event)Call event and return event is cancelled or not
If event is not Cancellable, return always falsestatic booleanstatic voidstatic Filestatic org.bukkit.LocationDefault minigame locationstatic Filestatic Filestatic FilegetServerFile(String file)static voidstatic voidstatic Stringstatic voidregisterEventListener(org.bukkit.event.Listener listener)static voidstatic voidstatic voidsendMsg(org.bukkit.entity.Player p, net.md_5.bungee.api.chat.BaseComponent compo)static voidsendMsg(org.bukkit.entity.Player p, net.md_5.bungee.api.chat.BaseComponent compo, boolean prefix)static voidstatic voidstatic voidsendMsgs(net.md_5.bungee.api.chat.BaseComponent compo)static voidsendMsgs(net.md_5.bungee.api.chat.BaseComponent compo, boolean prefix)static voidstatic 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() 
 -