Interface WorldModule
- All Superinterfaces:
ModuleSimple
Inserts the sender's world into a message, by name or by type.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumWhether the world is shown by name or by type. -
Method Summary
Modifier and TypeMethodDescriptionaddTag(MessageContext messageContext) Registers the tag that renders the sender's world.config()The config section this module reads its settings from.The permission that gates this module.voidRefreshes the world recorded for a player after they change dimension.Methods inherited from interface ModuleSimple
children, isDisable, name, onDisable, onEnable, permissions
-
Method Details
-
config
Message.Format.World config()Description copied from interface:ModuleSimpleThe config section this module reads its settings from.- Specified by:
configin interfaceModuleSimple- Returns:
- the settings
-
permission
Permission.Message.Format.World permission()Description copied from interface:ModuleSimpleThe permission that gates this module.- Specified by:
permissionin interfaceModuleSimple- Returns:
- the permission
-
addTag
Registers the tag that renders the sender's world.- Parameters:
messageContext- the message being formatted- Returns:
- the context with the tag added
-
update
Refreshes the world recorded for a player after they change dimension.- Parameters:
fPlayer- the player
-