public class NucleusAPI extends Object
public static NucleusAPIMetaService getMetaService()
NucleusAPIMetaService
IllegalStateException
- if Nucleus hasn't completed pre init yet.public static NucleusModuleService getModuleService()
NucleusModuleService
service, which contains the module information, as well as a way to disable the modules during
pre-init or init.NucleusAPIMetaService
IllegalStateException
- if Nucleus hasn't completed pre init yet.public static NucleusPlayerMetadataService getPlayerMetadataService()
NucleusPlayerMetadataService
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
IllegalStateException
- if Nucleus hasn't completed pre init yet.public static NucleusMessageTokenService getMessageTokenService()
NucleusMessageTokenService
service, which allows plugins to register message tokens/placeholders.NucleusMessageTokenService
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
IllegalStateException
- if Nucleus hasn't completed postinit.public static NucleusUserPreferenceService getUserPreferenceService()
NucleusUserPreferenceService
service, which allows plugins to read and set user preferences.NucleusUserPreferenceService
IllegalStateException
- if Nucleus hasn't completed pre init yet.public static Optional<NucleusAFKService> getAFKService()
NucleusAFKService
, if it exists.
Requires the "afk" module.
NucleusAFKService
public static Optional<NucleusBackService> getBackService()
NucleusBackService
, if it exists.
Requires the "back" module.
NucleusBackService
public static Optional<NucleusFreezePlayerService> getFreezePlayerService()
NucleusFreezePlayerService
, if it exists.
Requires the "freeze-player" module.
NucleusFreezePlayerService
public static Optional<NucleusHomeService> getHomeService()
NucleusHomeService
, if it exists.
Requires the "home" module.
NucleusHomeService
public static Optional<NucleusInvulnerabilityService> getInvulnerabilityService()
NucleusInvulnerabilityService
, if it exists.
Requires the "misc" module.
NucleusInvulnerabilityService
public static Optional<NucleusJailService> getJailService()
NucleusJailService
, if it exists.
Requires the "jail" module.
NucleusJailService
public static Optional<NucleusKitService> getKitService()
NucleusKitService
, if it exists.
Requires the "kit" module.
NucleusKitService
public static Optional<NucleusMailService> getMailService()
NucleusMailService
, if it exists.
Requires the "mail" module.
NucleusMailService
public static Optional<NucleusMuteService> getMuteService()
NucleusMuteService
, if it exists.
Requires the "mute" module.
NucleusMuteService
public static Optional<NucleusNameBanService> getNameBanService()
NucleusNameBanService
, if it exists.
Requires the "nameban" module.
NucleusNameBanService
public static Optional<NucleusNicknameService> getNicknameService()
NucleusNicknameService
, if it exists.
Requires the "nickname" module.
NucleusNicknameService
public static Optional<NucleusNoteService> getNoteService()
NucleusNoteService
, if it exists.
Requires the "note" module.
NucleusNoteService
public static Optional<NucleusPrivateMessagingService> getPrivateMessagingService()
NucleusPrivateMessagingService
, if it exists.
Requires the "message" module.
NucleusPrivateMessagingService
public static Optional<NucleusRTPService> getRTPService()
NucleusRTPService
, if it exists.
Requires the "rtp" module.
NucleusRTPService
public static Optional<NucleusSeenService> getSeenService()
NucleusSeenService
, if it exists.
Requires the "playerinfo" module.
NucleusSeenService
public static Optional<NucleusServerShopService> getServerShopService()
NucleusServerShopService
, if it exists.
Requires the "servershop" module.
NucleusServerShopService
public static Optional<NucleusStaffChatService> getStaffChatService()
NucleusStaffChatService
, if it exists.
Requires the "staff-chat" module.
NucleusStaffChatService
public static Optional<NucleusWarningService> getWarningService()
NucleusWarningService
, if it exists.
Requires the "warning" module.
NucleusWarningService
public static Optional<NucleusWarpService> getWarpService()
NucleusWarpService
, if it exists.
Requires the "warp" module.
NucleusWarpService