Interface IPlugin
public interface IPlugin
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Disables authentication checksvoid
Enables authentication checksReturns the placeholder service.default void
onReload()
Called when the plugin is reloaded<T> ISender
wrap
(T sender) Wraps a platform specific command sender to aISender
.<T> IPlayer
wrapPlayer
(T player) Wraps a platform specific player to aIPlayer
.
-
Method Details
-
disableChecks
void disableChecks()Disables authentication checks -
enableChecks
void enableChecks()Enables authentication checks -
onReload
default void onReload()Called when the plugin is reloaded -
wrapPlayer
Wraps a platform specific player to aIPlayer
.- Type Parameters:
T
- the platform specific player type- Parameters:
player
- the player wrap- Returns:
- the wrapped
IPlayer
-
wrap
Wraps a platform specific command sender to aISender
.- Type Parameters:
T
- the platform specific sender type- Parameters:
sender
- the command sender t9o wrap- Returns:
- the wrapped
ISender
-
getPlaceholderService
PlaceholderService getPlaceholderService()Returns the placeholder service.- Returns:
- the placeholder service
-