Class VelocityPlayer
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 Summary
ConstructorsConstructorDescriptionVelocityPlayer(com.velocitypowered.api.proxy.ProxyServer server, GSAuthVelocity plugin, com.gamersafer.minecraft.auth.common.configuration.ProxyConfiguration config, com.gamersafer.minecraft.auth.common.ephemeral.EphemeralUserReferenceManager ephemeralReferenceManager, GSAuthListener listener, com.velocitypowered.api.proxy.Player player) -
Method Summary
Modifier and TypeMethodDescriptionvoidexecuteCommands(List<String> commands) com.velocitypowered.api.proxy.Player@Nullable com.gamersafer.minecraft.auth.common.version.ServerVersionbooleanhasPermission(String perm) com.gamersafer.minecraft.auth.common.shared.model.impl.JavaUserIdentityidentity()booleanisOnline()voidkick(net.kyori.adventure.text.Component reason) voidopenBook(net.kyori.adventure.inventory.Book book) booleansame(com.gamersafer.minecraft.auth.common.abstraction.IPlayer other) voidsendActionBar(String message) voidsendActionBar(net.kyori.adventure.text.Component message) sendBossbar(String message, com.gamersafer.minecraft.auth.common.configuration.MessageConfiguration.BossBarStyle style, com.gamersafer.minecraft.auth.common.configuration.MessageConfiguration.BossBarColor color, int time) voidsendMessage(String message) voidsendMessage(net.kyori.adventure.text.Component message) Methods inherited from class com.gamersafer.minecraft.auth.velocity.abstraction.VelocitySender
getCommandSourceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.gamersafer.minecraft.auth.common.abstraction.IPlayer
send, send
-
Constructor Details
-
VelocityPlayer
public VelocityPlayer(com.velocitypowered.api.proxy.ProxyServer server, GSAuthVelocity plugin, com.gamersafer.minecraft.auth.common.configuration.ProxyConfiguration config, 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
- Specified by:
hasPermissionin interfacecom.gamersafer.minecraft.auth.common.abstraction.ISender
-
sendActionBar
- Specified by:
sendActionBarin interfacecom.gamersafer.minecraft.auth.common.abstraction.IPlayer
-
sendActionBar
public void sendActionBar(net.kyori.adventure.text.Component message) - Specified by:
sendActionBarin interfacecom.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:
sendBossbarin interfacecom.gamersafer.minecraft.auth.common.abstraction.IPlayer
-
sendMessage
- Specified by:
sendMessagein interfacecom.gamersafer.minecraft.auth.common.abstraction.IPlayer- Specified by:
sendMessagein interfacecom.gamersafer.minecraft.auth.common.abstraction.ISender
-
sendMessage
public void sendMessage(net.kyori.adventure.text.Component message) - Specified by:
sendMessagein interfacecom.gamersafer.minecraft.auth.common.abstraction.ISender
-
sendTitle
- Specified by:
sendTitlein interfacecom.gamersafer.minecraft.auth.common.abstraction.IPlayer
-
openBook
public void openBook(net.kyori.adventure.inventory.Book book) - Specified by:
openBookin interfacecom.gamersafer.minecraft.auth.common.abstraction.IPlayer
-
executeCommands
- Specified by:
executeCommandsin interfacecom.gamersafer.minecraft.auth.common.abstraction.IPlayer
-
identity
public com.gamersafer.minecraft.auth.common.shared.model.impl.JavaUserIdentity identity()- Specified by:
identityin interfacecom.gamersafer.minecraft.auth.common.abstraction.IPlayer
-
kick
public void kick(net.kyori.adventure.text.Component reason) - Specified by:
kickin interfacecom.gamersafer.minecraft.auth.common.abstraction.IPlayer
-
getLocale
- Specified by:
getLocalein interfacecom.gamersafer.minecraft.auth.common.abstraction.IPlayer
-
getServerName
- Specified by:
getServerNamein interfacecom.gamersafer.minecraft.auth.common.abstraction.IPlayer
-
isOnline
public boolean isOnline()- Specified by:
isOnlinein interfacecom.gamersafer.minecraft.auth.common.abstraction.IPlayer
-
getServerVersion
public @Nullable com.gamersafer.minecraft.auth.common.version.ServerVersion getServerVersion()- Specified by:
getServerVersionin interfacecom.gamersafer.minecraft.auth.common.abstraction.IPlayer
-
same
public boolean same(com.gamersafer.minecraft.auth.common.abstraction.IPlayer other) - Specified by:
samein interfacecom.gamersafer.minecraft.auth.common.abstraction.IPlayer
-