Class GSAuthListenerStandalone
java.lang.Object
com.gamersafer.minecraft.auth.common.listener.GSAuthListenerStandalone
-
Field Summary
Modifier and TypeFieldDescriptionprotected final BanManager
protected final BackendServerCommunicator
protected final SharedConfiguration
protected final GSAuthPlugin
protected boolean
protected final EventFactory
protected final LanguageConfiguration
protected final ILogger
protected final ILoginHandlerFactory
protected final MessageConfiguration
protected final IOnboardingService
protected final PlaceholderService
protected final IPlayerStorage
protected final String
protected final IServer
protected final IProfileService
-
Constructor Summary
ConstructorDescriptionGSAuthListenerStandalone
(IServer server, GSAuthPlugin core, SharedConfiguration config, MessageConfiguration messages, LanguageConfiguration lang, BackendServerCommunicator communicator, IProfileService service, IPlayerStorage playerStorage, ILogger logger, BanManager banManager, EventFactory eventFactory, ILoginHandlerFactory loginHandlerFactory, String pluginChannel, PlaceholderService placeholderService, IOnboardingService onboardingService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
executeAfterServerConnect
(UUID uuid, Runnable r) void
onDisconnect
(UserIdentity identity) void
At the earliest login event where Player Object is available.void
onLoginEarly
(UserIdentity identity, @Nullable IPlayer eventPlayer) At the earliest login event.void
onPluginMessage
(String channel, byte[] content, boolean fromServer, Runnable canceller) void
onPostServerConnect
(IPlayer player) protected abstract void
sendDataToServer
(IPlayer player) protected abstract void
sendDisabled
(IPlayer player)
-
Field Details
-
server
-
core
-
config
-
messages
-
lang
-
communicator
-
service
-
playerStorage
-
logger
-
banManager
-
eventFactory
-
loginHandlerFactory
-
placeholderService
-
pluginChannel
-
onboardingService
-
disableChecks
protected boolean disableChecks
-
-
Constructor Details
-
Method Details
-
onLogin
public void onLogin(IPlayer iplayer, Consumer<net.kyori.adventure.text.Component> loginBanCanceller) At the earliest login event where Player Object is available. Event priorityNORMAL
-
onPluginMessage
-
onPostServerConnect
-
sendDataToServer
-
sendDisabled
-
executeAfterServerConnect
-
disableChecks
public void disableChecks() -
enableChecks
public void enableChecks()