Class BungeecordPlayer
java.lang.Object
com.gamersafer.minecraft.auth.bungeecord.abstraction.BungeecordSender
com.gamersafer.minecraft.auth.bungeecord.abstraction.BungeecordPlayer
- All Implemented Interfaces:
com.gamersafer.minecraft.auth.common.abstraction.IPlayer
,com.gamersafer.minecraft.auth.common.abstraction.ISender
public class BungeecordPlayer
extends BungeecordSender
implements com.gamersafer.minecraft.auth.common.abstraction.IPlayer
-
Constructor Summary
ConstructorDescriptionBungeecordPlayer
(net.md_5.bungee.api.ProxyServer server, GSAuthBungeecord plugin, com.gamersafer.minecraft.auth.common.configuration.ProxyConfiguration config, com.gamersafer.minecraft.auth.common.ephemeral.EphemeralUserReferenceManager ephemeralReferenceManager, GSAuthListener listener, net.kyori.adventure.platform.bungeecord.BungeeAudiences adventure, net.md_5.bungee.api.connection.ProxiedPlayer player) -
Method Summary
Modifier and TypeMethodDescriptionvoid
executeCommands
(List<String> commands) net.md_5.bungee.api.connection.ProxiedPlayer
@Nullable com.gamersafer.minecraft.auth.common.version.ServerVersion
boolean
hasPermission
(String perm) com.gamersafer.minecraft.auth.common.shared.model.impl.JavaUserIdentity
identity()
boolean
isOnline()
void
kick
(net.kyori.adventure.text.Component reason) void
openBook
(net.kyori.adventure.inventory.Book book) boolean
same
(com.gamersafer.minecraft.auth.common.abstraction.IPlayer other) void
sendActionBar
(String message) void
sendActionBar
(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) void
sendMessage
(String message) void
sendMessage
(net.kyori.adventure.text.Component message) Methods inherited from class com.gamersafer.minecraft.auth.bungeecord.abstraction.BungeecordSender
getCommandSender
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.gamersafer.minecraft.auth.common.abstraction.IPlayer
send, send
-
Constructor Details
-
BungeecordPlayer
public BungeecordPlayer(net.md_5.bungee.api.ProxyServer server, GSAuthBungeecord plugin, com.gamersafer.minecraft.auth.common.configuration.ProxyConfiguration config, com.gamersafer.minecraft.auth.common.ephemeral.EphemeralUserReferenceManager ephemeralReferenceManager, GSAuthListener listener, net.kyori.adventure.platform.bungeecord.BungeeAudiences adventure, net.md_5.bungee.api.connection.ProxiedPlayer player)
-
-
Method Details
-
getPlayer
public net.md_5.bungee.api.connection.ProxiedPlayer getPlayer() -
hasPermission
- Specified by:
hasPermission
in interfacecom.gamersafer.minecraft.auth.common.abstraction.ISender
-
sendActionBar
- Specified by:
sendActionBar
in interfacecom.gamersafer.minecraft.auth.common.abstraction.IPlayer
-
sendActionBar
public void sendActionBar(net.kyori.adventure.text.Component message) - Specified by:
sendActionBar
in 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:
sendBossbar
in interfacecom.gamersafer.minecraft.auth.common.abstraction.IPlayer
-
sendMessage
- Specified by:
sendMessage
in interfacecom.gamersafer.minecraft.auth.common.abstraction.IPlayer
- Specified by:
sendMessage
in interfacecom.gamersafer.minecraft.auth.common.abstraction.ISender
-
sendMessage
public void sendMessage(net.kyori.adventure.text.Component message) - Specified by:
sendMessage
in interfacecom.gamersafer.minecraft.auth.common.abstraction.ISender
-
sendTitle
- Specified by:
sendTitle
in interfacecom.gamersafer.minecraft.auth.common.abstraction.IPlayer
-
openBook
public void openBook(net.kyori.adventure.inventory.Book book) - Specified by:
openBook
in interfacecom.gamersafer.minecraft.auth.common.abstraction.IPlayer
-
executeCommands
- Specified by:
executeCommands
in interfacecom.gamersafer.minecraft.auth.common.abstraction.IPlayer
-
identity
public com.gamersafer.minecraft.auth.common.shared.model.impl.JavaUserIdentity identity()- Specified by:
identity
in interfacecom.gamersafer.minecraft.auth.common.abstraction.IPlayer
-
kick
public void kick(net.kyori.adventure.text.Component reason) - Specified by:
kick
in interfacecom.gamersafer.minecraft.auth.common.abstraction.IPlayer
-
same
public boolean same(com.gamersafer.minecraft.auth.common.abstraction.IPlayer other) - Specified by:
same
in interfacecom.gamersafer.minecraft.auth.common.abstraction.IPlayer
-
getLocale
- Specified by:
getLocale
in interfacecom.gamersafer.minecraft.auth.common.abstraction.IPlayer
-
getServerName
- Specified by:
getServerName
in interfacecom.gamersafer.minecraft.auth.common.abstraction.IPlayer
-
isOnline
public boolean isOnline()- Specified by:
isOnline
in interfacecom.gamersafer.minecraft.auth.common.abstraction.IPlayer
-
getServerVersion
public @Nullable com.gamersafer.minecraft.auth.common.version.ServerVersion getServerVersion()- Specified by:
getServerVersion
in interfacecom.gamersafer.minecraft.auth.common.abstraction.IPlayer
-