Class BukkitPlayer

java.lang.Object
me.lucyy.squirtgun.bukkit.BukkitPlayer
All Implemented Interfaces:
me.lucyy.squirtgun.platform.PermissionHolder, me.lucyy.squirtgun.platform.SquirtgunPlayer, net.kyori.adventure.audience.Audience

public class BukkitPlayer
extends java.lang.Object
implements me.lucyy.squirtgun.platform.SquirtgunPlayer
SquirtgunPlayer implementation for Bukkit.
  • Constructor Summary

    Constructors
    Constructor Description
    BukkitPlayer​(org.bukkit.OfflinePlayer parent)  
  • Method Summary

    Modifier and Type Method Description
    me.lucyy.squirtgun.platform.Gamemode getGamemode()  
    java.lang.String getUsername()  
    java.util.UUID getUuid()  
    boolean hasPermission​(java.lang.String permission)  
    boolean isOnline()  
    void setGamemode​(me.lucyy.squirtgun.platform.Gamemode mode)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.kyori.adventure.audience.Audience

    clearTitle, hideBossBar, openBook, openBook, playSound, playSound, resetTitle, sendActionBar, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendPlayerListHeaderAndFooter, showBossBar, showTitle, stopSound
  • Constructor Details

    • BukkitPlayer

      public BukkitPlayer​(org.bukkit.OfflinePlayer parent)
  • Method Details

    • getUuid

      public java.util.UUID getUuid()
      Specified by:
      getUuid in interface me.lucyy.squirtgun.platform.SquirtgunPlayer
    • getUsername

      public java.lang.String getUsername()
      Specified by:
      getUsername in interface me.lucyy.squirtgun.platform.SquirtgunPlayer
    • isOnline

      public boolean isOnline()
      Specified by:
      isOnline in interface me.lucyy.squirtgun.platform.SquirtgunPlayer
    • hasPermission

      public boolean hasPermission​(java.lang.String permission)
      Specified by:
      hasPermission in interface me.lucyy.squirtgun.platform.PermissionHolder
      Specified by:
      hasPermission in interface me.lucyy.squirtgun.platform.SquirtgunPlayer
    • getGamemode

      public me.lucyy.squirtgun.platform.Gamemode getGamemode()
      Specified by:
      getGamemode in interface me.lucyy.squirtgun.platform.SquirtgunPlayer
    • setGamemode

      public void setGamemode​(me.lucyy.squirtgun.platform.Gamemode mode)
      Specified by:
      setGamemode in interface me.lucyy.squirtgun.platform.SquirtgunPlayer