Package dev.aura.bungeechat
Class BungeeChat
- java.lang.Object
-
- net.md_5.bungee.api.plugin.Plugin
-
- dev.aura.bungeechat.BungeeChat
-
- All Implemented Interfaces:
dev.aura.bungeechat.api.BungeeChatApi
public class BungeeChat extends Plugin implements dev.aura.bungeechat.api.BungeeChatApi
-
-
Constructor Summary
Constructors Modifier Constructor Description BungeeChat()protectedBungeeChat(ProxyServer proxy, PluginDescription description)For unit tests only!
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FilegetConfigFolder()static BungeeChatgetInstance()FilegetLangFolder()StringgetLatestVersion()StringgetLatestVersion(boolean refreshCache)booleanisLatestVersion()voidonDisable()voidonEnable()voidonEnable(boolean printLoadScreen)voidonLoad()voidsendChannelMessage(dev.aura.bungeechat.api.placeholder.BungeeChatContext context, dev.aura.bungeechat.api.enums.ChannelType channel)voidsendPrivateMessage(dev.aura.bungeechat.api.placeholder.BungeeChatContext context)-
Methods inherited from class net.md_5.bungee.api.plugin.Plugin
getDataFolder, getDescription, getExecutorService, getFile, getLogger, getProxy, getResourceAsStream
-
-
-
-
Constructor Detail
-
BungeeChat
public BungeeChat()
-
BungeeChat
protected BungeeChat(ProxyServer proxy, PluginDescription description)
For unit tests only!
-
-
Method Detail
-
onEnable
public void onEnable(boolean printLoadScreen)
-
getConfigFolder
public File getConfigFolder()
- Specified by:
getConfigFolderin interfacedev.aura.bungeechat.api.BungeeChatApi
-
getLangFolder
public File getLangFolder()
-
sendPrivateMessage
public void sendPrivateMessage(dev.aura.bungeechat.api.placeholder.BungeeChatContext context) throws dev.aura.bungeechat.api.placeholder.InvalidContextError- Specified by:
sendPrivateMessagein interfacedev.aura.bungeechat.api.BungeeChatApi- Throws:
dev.aura.bungeechat.api.placeholder.InvalidContextError
-
sendChannelMessage
public void sendChannelMessage(dev.aura.bungeechat.api.placeholder.BungeeChatContext context, dev.aura.bungeechat.api.enums.ChannelType channel) throws dev.aura.bungeechat.api.placeholder.InvalidContextError- Specified by:
sendChannelMessagein interfacedev.aura.bungeechat.api.BungeeChatApi- Throws:
dev.aura.bungeechat.api.placeholder.InvalidContextError
-
getLatestVersion
public String getLatestVersion()
-
getLatestVersion
public String getLatestVersion(boolean refreshCache)
-
isLatestVersion
public boolean isLatestVersion()
-
getInstance
public static BungeeChat getInstance()
-
-