Package me.lucyy.squirtgun.bungee
Class BungeePlatform
- java.lang.Object
-
- me.lucyy.squirtgun.bungee.BungeePlatform
-
- All Implemented Interfaces:
me.lucyy.squirtgun.platform.Platform
public class BungeePlatform extends java.lang.Object implements me.lucyy.squirtgun.platform.PlatformA Platform implementation for BungeeCord.
-
-
Constructor Summary
Constructors Constructor Description BungeePlatform(net.md_5.bungee.api.plugin.Plugin plugin)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description me.lucyy.squirtgun.platform.AuthModegetAuthMode()net.md_5.bungee.api.plugin.PlugingetBungeePlugin()java.nio.file.PathgetConfigPath(me.lucyy.squirtgun.plugin.SquirtgunPlugin<?> plugin)me.lucyy.squirtgun.platform.audience.SquirtgunUsergetConsole()java.util.logging.LoggergetLogger()java.util.List<me.lucyy.squirtgun.platform.audience.SquirtgunPlayer>getOnlinePlayers()me.lucyy.squirtgun.platform.audience.SquirtgunPlayergetPlayer(java.lang.String name)me.lucyy.squirtgun.platform.audience.SquirtgunPlayergetPlayer(java.util.UUID uuid)me.lucyy.squirtgun.platform.scheduler.TaskSchedulergetTaskScheduler()me.lucyy.squirtgun.platform.audience.SquirtgunUsergetUser(net.md_5.bungee.api.CommandSender sender)Gets a SquirtgunUser from a command sender.voidlog(net.kyori.adventure.text.Component component)java.lang.Stringname()voidregisterEventListener(me.lucyy.squirtgun.platform.EventListener listener)voidunregisterEventListener(me.lucyy.squirtgun.platform.EventListener listener)
-
-
-
Method Detail
-
getBungeePlugin
public net.md_5.bungee.api.plugin.Plugin getBungeePlugin()
-
name
public java.lang.String name()
- Specified by:
namein interfaceme.lucyy.squirtgun.platform.Platform
-
getLogger
public java.util.logging.Logger getLogger()
- Specified by:
getLoggerin interfaceme.lucyy.squirtgun.platform.Platform
-
log
public void log(net.kyori.adventure.text.Component component)
- Specified by:
login interfaceme.lucyy.squirtgun.platform.Platform
-
getAuthMode
public me.lucyy.squirtgun.platform.AuthMode getAuthMode()
- Specified by:
getAuthModein interfaceme.lucyy.squirtgun.platform.Platform
-
getTaskScheduler
public me.lucyy.squirtgun.platform.scheduler.TaskScheduler getTaskScheduler()
- Specified by:
getTaskSchedulerin interfaceme.lucyy.squirtgun.platform.Platform
-
registerEventListener
public void registerEventListener(me.lucyy.squirtgun.platform.EventListener listener)
- Specified by:
registerEventListenerin interfaceme.lucyy.squirtgun.platform.Platform
-
unregisterEventListener
public void unregisterEventListener(me.lucyy.squirtgun.platform.EventListener listener)
- Specified by:
unregisterEventListenerin interfaceme.lucyy.squirtgun.platform.Platform
-
getConsole
public me.lucyy.squirtgun.platform.audience.SquirtgunUser getConsole()
- Specified by:
getConsolein interfaceme.lucyy.squirtgun.platform.Platform
-
getPlayer
public me.lucyy.squirtgun.platform.audience.SquirtgunPlayer getPlayer(java.util.UUID uuid)
- Specified by:
getPlayerin interfaceme.lucyy.squirtgun.platform.Platform
-
getPlayer
public me.lucyy.squirtgun.platform.audience.SquirtgunPlayer getPlayer(java.lang.String name)
- Specified by:
getPlayerin interfaceme.lucyy.squirtgun.platform.Platform
-
getOnlinePlayers
public java.util.List<me.lucyy.squirtgun.platform.audience.SquirtgunPlayer> getOnlinePlayers()
- Specified by:
getOnlinePlayersin interfaceme.lucyy.squirtgun.platform.Platform
-
getUser
public me.lucyy.squirtgun.platform.audience.SquirtgunUser getUser(net.md_5.bungee.api.CommandSender sender)
Gets a SquirtgunUser from a command sender.- Parameters:
sender- the command sender
-
getConfigPath
public java.nio.file.Path getConfigPath(me.lucyy.squirtgun.plugin.SquirtgunPlugin<?> plugin)
- Specified by:
getConfigPathin interfaceme.lucyy.squirtgun.platform.Platform
-
-