Class BukkitPlatform

java.lang.Object
me.lucyy.squirtgun.bukkit.BukkitPlatform
All Implemented Interfaces:
me.lucyy.squirtgun.platform.Platform

public class BukkitPlatform
extends java.lang.Object
implements me.lucyy.squirtgun.platform.Platform
A Platform implementation for Bukkit.
  • Constructor Summary

    Constructors
    Constructor Description
    BukkitPlatform​(org.bukkit.plugin.java.JavaPlugin plugin)  
  • Method Summary

    Modifier and Type Method Description
    me.lucyy.squirtgun.platform.AuthMode getAuthMode()  
    java.util.logging.Logger getLogger()  
    java.util.List<me.lucyy.squirtgun.platform.SquirtgunPlayer> getOnlinePlayers()  
    me.lucyy.squirtgun.platform.SquirtgunPlayer getPlayer​(java.lang.String name)  
    me.lucyy.squirtgun.platform.SquirtgunPlayer getPlayer​(java.util.UUID uuid)  
    java.lang.String getPluginName()  
    java.lang.String getPluginVersion()  
    me.lucyy.squirtgun.platform.scheduler.TaskScheduler getTaskScheduler()  
    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 Details

    • BukkitPlatform

      public BukkitPlatform​(org.bukkit.plugin.java.JavaPlugin plugin)
  • Method Details

    • getLogger

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

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

      public java.lang.String getPluginVersion()
      Specified by:
      getPluginVersion 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
    • getPlayer

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

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