public class NucleusAPI
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.util.Optional<NucleusAFKService> |
getAFKService()
Gets the
NucleusAFKService , if it exists. |
static java.util.Optional<NucleusBackService> |
getBackService()
Gets the
NucleusBackService , if it exists. |
static java.util.Optional<NucleusFreezePlayerService> |
getFreezePlayerService()
Gets the
NucleusFreezePlayerService , if it exists. |
static java.util.Optional<NucleusHomeService> |
getHomeService()
Gets the
NucleusHomeService , if it exists. |
static java.util.Optional<NucleusInvulnerabilityService> |
getInvulnerabilityService()
Gets the
NucleusInvulnerabilityService , if it exists. |
static java.util.Optional<NucleusJailService> |
getJailService()
Gets the
NucleusJailService , if it exists. |
static java.util.Optional<NucleusKitService> |
getKitService()
Gets the
NucleusKitService , if it exists. |
static java.util.Optional<NucleusMailService> |
getMailService()
Gets the
NucleusMailService , if it exists. |
static NucleusAPIMetaService |
getMetaService()
Gets the API Meta service, which contains the version information.
|
static java.util.Optional<NucleusMuteService> |
getMuteService()
Gets the
NucleusMuteService , if it exists. |
static java.util.Optional<NucleusNameBanService> |
getNameBanService()
Gets the
NucleusNameBanService , if it exists. |
static java.util.Optional<NucleusNicknameService> |
getNicknameService()
Gets the
NucleusNicknameService , if it exists. |
static java.util.Optional<NucleusNoteService> |
getNoteService()
Gets the
NucleusNoteService , if it exists. |
static NucleusPlaceholderService |
getPlaceholderService()
Gets the
NucleusPlaceholderService service, which allows plugins to register message placeholders. |
static NucleusPlayerMetadataService |
getPlayerMetadataService()
Gets the API Player Metadata service, which contains the player metadata information.
|
static java.util.Optional<NucleusPrivateMessagingService> |
getPrivateMessagingService()
Gets the
NucleusPrivateMessagingService , if it exists. |
static java.util.Optional<NucleusRTPService> |
getRTPService()
Gets the
NucleusRTPService , if it exists. |
static java.util.Optional<NucleusSeenService> |
getSeenService()
Gets the
NucleusSeenService , if it exists. |
static java.util.Optional<NucleusStaffChatService> |
getStaffChatService()
Gets the
NucleusStaffChatService , if it exists. |
static NucleusTextTemplateFactory |
getTextTemplateFactory()
Gets the
NucleusTextTemplateFactory service, which allows plugins to create NucleusTextTemplate s. |
static NucleusUserPreferenceService |
getUserPreferenceService()
Gets the
NucleusUserPreferenceService service, which allows plugins to read and set user preferences. |
static NucleusWarmupManagerService |
getWarmupManagerService()
Gets the
NucleusWarmupManagerService service, which allows plugins to use Nucleus to manage their warmups. |
static java.util.Optional<NucleusWarningService> |
getWarningService()
Gets the
NucleusWarningService , if it exists. |
static java.util.Optional<NucleusWarpService> |
getWarpService()
Gets the
NucleusWarpService , if it exists. |
static NucleusWorldUUIDChangeService |
getWorldUUIDChangeService()
Gets the
NucleusWorldUUIDChangeService service, which allows plugins to check if the admin has created a world UUID mapping. |
public static NucleusAPIMetaService getMetaService()
NucleusAPIMetaService
java.lang.IllegalStateException
- if Nucleus hasn't completed pre init yet.public static NucleusPlayerMetadataService getPlayerMetadataService()
NucleusPlayerMetadataService
java.lang.IllegalStateException
- if Nucleus hasn't completed post init yet.public static NucleusWarmupManagerService getWarmupManagerService()
NucleusWarmupManagerService
service, which allows plugins to use Nucleus to manage their warmups.NucleusWarmupManagerService
java.lang.IllegalStateException
- if Nucleus hasn't completed pre init yet.public static NucleusPlaceholderService getPlaceholderService()
NucleusPlaceholderService
service, which allows plugins to register message placeholders.NucleusPlaceholderService
java.lang.IllegalStateException
- if Nucleus hasn't completed pre init yet.public static NucleusTextTemplateFactory getTextTemplateFactory()
NucleusTextTemplateFactory
service, which allows plugins to create NucleusTextTemplate
s.NucleusTextTemplateFactory
java.lang.IllegalStateException
- if Nucleus hasn't completed pre init yet.public static NucleusWorldUUIDChangeService getWorldUUIDChangeService()
NucleusWorldUUIDChangeService
service, which allows plugins to check if the admin has created a world UUID mapping.
For proper verification, this will not contain any mappings until after the GameStartingServerEvent
on default ordering
NucleusWorldUUIDChangeService
java.lang.IllegalStateException
- if Nucleus hasn't completed postinit.public static NucleusUserPreferenceService getUserPreferenceService()
NucleusUserPreferenceService
service, which allows plugins to read and set user preferences.NucleusUserPreferenceService
java.lang.IllegalStateException
- if Nucleus hasn't completed pre init yet.public static java.util.Optional<NucleusAFKService> getAFKService()
NucleusAFKService
, if it exists.
Requires the "afk" module.
NucleusAFKService
public static java.util.Optional<NucleusBackService> getBackService()
NucleusBackService
, if it exists.
Requires the "back" module.
NucleusBackService
public static java.util.Optional<NucleusFreezePlayerService> getFreezePlayerService()
NucleusFreezePlayerService
, if it exists.
Requires the "freeze-player" module.
NucleusFreezePlayerService
public static java.util.Optional<NucleusHomeService> getHomeService()
NucleusHomeService
, if it exists.
Requires the "home" module.
NucleusHomeService
public static java.util.Optional<NucleusInvulnerabilityService> getInvulnerabilityService()
NucleusInvulnerabilityService
, if it exists.
Requires the "misc" module.
NucleusInvulnerabilityService
public static java.util.Optional<NucleusJailService> getJailService()
NucleusJailService
, if it exists.
Requires the "jail" module.
NucleusJailService
public static java.util.Optional<NucleusKitService> getKitService()
NucleusKitService
, if it exists.
Requires the "kit" module.
NucleusKitService
public static java.util.Optional<NucleusMailService> getMailService()
NucleusMailService
, if it exists.
Requires the "mail" module.
NucleusMailService
public static java.util.Optional<NucleusMuteService> getMuteService()
NucleusMuteService
, if it exists.
Requires the "mute" module.
NucleusMuteService
public static java.util.Optional<NucleusNameBanService> getNameBanService()
NucleusNameBanService
, if it exists.
Requires the "nameban" module.
NucleusNameBanService
public static java.util.Optional<NucleusNicknameService> getNicknameService()
NucleusNicknameService
, if it exists.
Requires the "nickname" module.
NucleusNicknameService
public static java.util.Optional<NucleusNoteService> getNoteService()
NucleusNoteService
, if it exists.
Requires the "note" module.
NucleusNoteService
public static java.util.Optional<NucleusPrivateMessagingService> getPrivateMessagingService()
NucleusPrivateMessagingService
, if it exists.
Requires the "message" module.
NucleusPrivateMessagingService
public static java.util.Optional<NucleusRTPService> getRTPService()
NucleusRTPService
, if it exists.
Requires the "rtp" module.
NucleusRTPService
public static java.util.Optional<NucleusSeenService> getSeenService()
NucleusSeenService
, if it exists.
Requires the "playerinfo" module.
NucleusSeenService
public static java.util.Optional<NucleusStaffChatService> getStaffChatService()
NucleusStaffChatService
, if it exists.
Requires the "staff-chat" module.
NucleusStaffChatService
public static java.util.Optional<NucleusWarningService> getWarningService()
NucleusWarningService
, if it exists.
Requires the "warning" module.
NucleusWarningService
public static java.util.Optional<NucleusWarpService> getWarpService()
NucleusWarpService
, if it exists.
Requires the "warp" module.
NucleusWarpService