Class BungeePlatform

  • All Implemented Interfaces:
    me.lucyy.squirtgun.platform.Platform

    public class BungeePlatform
    extends java.lang.Object
    implements me.lucyy.squirtgun.platform.Platform
    A 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.AuthMode getAuthMode()  
      net.md_5.bungee.api.plugin.Plugin getBungeePlugin()  
      java.nio.file.Path getConfigPath​(me.lucyy.squirtgun.plugin.SquirtgunPlugin<?> plugin)  
      me.lucyy.squirtgun.platform.audience.SquirtgunUser getConsole()  
      java.util.logging.Logger getLogger()  
      java.util.List<me.lucyy.squirtgun.platform.audience.SquirtgunPlayer> getOnlinePlayers()  
      me.lucyy.squirtgun.platform.audience.SquirtgunPlayer getPlayer​(java.lang.String name)  
      me.lucyy.squirtgun.platform.audience.SquirtgunPlayer getPlayer​(java.util.UUID uuid)  
      me.lucyy.squirtgun.platform.scheduler.TaskScheduler getTaskScheduler()  
      me.lucyy.squirtgun.platform.audience.SquirtgunUser getUser​(net.md_5.bungee.api.CommandSender sender)
      Gets a SquirtgunUser from a command sender.
      void log​(net.kyori.adventure.text.Component component)  
      java.lang.String name()  
      void registerEventListener​(me.lucyy.squirtgun.platform.EventListener listener)  
      void unregisterEventListener​(me.lucyy.squirtgun.platform.EventListener listener)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BungeePlatform

        public BungeePlatform​(net.md_5.bungee.api.plugin.Plugin plugin)
    • Method Detail

      • getBungeePlugin

        public net.md_5.bungee.api.plugin.Plugin getBungeePlugin()
      • name

        public java.lang.String name()
        Specified by:
        name in interface me.lucyy.squirtgun.platform.Platform
      • getLogger

        public java.util.logging.Logger getLogger()
        Specified by:
        getLogger in interface me.lucyy.squirtgun.platform.Platform
      • log

        public void log​(net.kyori.adventure.text.Component component)
        Specified by:
        log in interface me.lucyy.squirtgun.platform.Platform
      • getAuthMode

        public me.lucyy.squirtgun.platform.AuthMode getAuthMode()
        Specified by:
        getAuthMode in interface me.lucyy.squirtgun.platform.Platform
      • getTaskScheduler

        public me.lucyy.squirtgun.platform.scheduler.TaskScheduler getTaskScheduler()
        Specified by:
        getTaskScheduler in interface me.lucyy.squirtgun.platform.Platform
      • registerEventListener

        public void registerEventListener​(me.lucyy.squirtgun.platform.EventListener listener)
        Specified by:
        registerEventListener in interface me.lucyy.squirtgun.platform.Platform
      • unregisterEventListener

        public void unregisterEventListener​(me.lucyy.squirtgun.platform.EventListener listener)
        Specified by:
        unregisterEventListener in interface me.lucyy.squirtgun.platform.Platform
      • getConsole

        public me.lucyy.squirtgun.platform.audience.SquirtgunUser getConsole()
        Specified by:
        getConsole in interface me.lucyy.squirtgun.platform.Platform
      • getPlayer

        public me.lucyy.squirtgun.platform.audience.SquirtgunPlayer getPlayer​(java.util.UUID uuid)
        Specified by:
        getPlayer in interface me.lucyy.squirtgun.platform.Platform
      • getPlayer

        public me.lucyy.squirtgun.platform.audience.SquirtgunPlayer getPlayer​(java.lang.String name)
        Specified by:
        getPlayer in interface me.lucyy.squirtgun.platform.Platform
      • getOnlinePlayers

        public java.util.List<me.lucyy.squirtgun.platform.audience.SquirtgunPlayer> getOnlinePlayers()
        Specified by:
        getOnlinePlayers in interface me.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:
        getConfigPath in interface me.lucyy.squirtgun.platform.Platform