java.lang.Object
com.gamersafer.minecraft.auth.velocity.abstraction.VelocitySender
com.gamersafer.minecraft.auth.velocity.abstraction.VelocityPlayer
All Implemented Interfaces:
com.gamersafer.minecraft.auth.common.abstraction.IPlayer, com.gamersafer.minecraft.auth.common.abstraction.ISender

public class VelocityPlayer extends VelocitySender implements com.gamersafer.minecraft.auth.common.abstraction.IPlayer
  • Constructor Details

    • VelocityPlayer

      public VelocityPlayer(com.velocitypowered.api.proxy.ProxyServer server, GSAuthVelocity plugin, com.gamersafer.minecraft.auth.common.ephemeral.EphemeralUserReferenceManager ephemeralReferenceManager, GSAuthListener listener, com.velocitypowered.api.proxy.Player player)
  • Method Details

    • getPlayer

      public com.velocitypowered.api.proxy.Player getPlayer()
    • hasPermission

      public boolean hasPermission(String perm)
      Specified by:
      hasPermission in interface com.gamersafer.minecraft.auth.common.abstraction.ISender
    • sendActionBar

      public void sendActionBar(String message)
      Specified by:
      sendActionBar in interface com.gamersafer.minecraft.auth.common.abstraction.IPlayer
    • sendBossbar

      public CompletableFuture<Void> sendBossbar(String message, com.gamersafer.minecraft.auth.common.configuration.MessageConfiguration.BossBarStyle style, com.gamersafer.minecraft.auth.common.configuration.MessageConfiguration.BossBarColor color, int time)
      Specified by:
      sendBossbar in interface com.gamersafer.minecraft.auth.common.abstraction.IPlayer
    • sendMessage

      public void sendMessage(String message)
      Specified by:
      sendMessage in interface com.gamersafer.minecraft.auth.common.abstraction.IPlayer
      Specified by:
      sendMessage in interface com.gamersafer.minecraft.auth.common.abstraction.ISender
    • sendMessage

      public void sendMessage(net.kyori.adventure.text.Component message)
      Specified by:
      sendMessage in interface com.gamersafer.minecraft.auth.common.abstraction.ISender
    • sendTitle

      public CompletableFuture<Void> sendTitle(String message, String submessage, int time)
      Specified by:
      sendTitle in interface com.gamersafer.minecraft.auth.common.abstraction.IPlayer
    • executeCommands

      public void executeCommands(List<String> commands)
      Specified by:
      executeCommands in interface com.gamersafer.minecraft.auth.common.abstraction.IPlayer
    • identity

      public com.gamersafer.minecraft.auth.common.shared.model.impl.JavaUserIdentity identity()
      Specified by:
      identity in interface com.gamersafer.minecraft.auth.common.abstraction.IPlayer
    • kick

      public void kick(net.kyori.adventure.text.Component reason)
      Specified by:
      kick in interface com.gamersafer.minecraft.auth.common.abstraction.IPlayer
    • getLocale

      public Locale getLocale()
      Specified by:
      getLocale in interface com.gamersafer.minecraft.auth.common.abstraction.IPlayer
    • getServerName

      public Optional<String> getServerName()
      Specified by:
      getServerName in interface com.gamersafer.minecraft.auth.common.abstraction.IPlayer
    • same

      public boolean same(com.gamersafer.minecraft.auth.common.abstraction.IPlayer other)
      Specified by:
      same in interface com.gamersafer.minecraft.auth.common.abstraction.IPlayer