Interface IPlugin
public interface IPlugin
-
Method Summary
Modifier and TypeMethodDescriptionvoidDisables authentication checksvoidEnables authentication checksReturns the placeholder service.default voidonReload()Called when the plugin is reloaded<T> ISenderwrap(T sender) Wraps a platform specific command sender to aISender.<T> IPlayerwrapPlayer(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
-