Class DisplayUtils
java.lang.Object
org.mvplugins.multiverse.portals.utils.DisplayUtils
-
Method Summary
Modifier and TypeMethodDescriptionformatActionAsMVDestination(MVPortal portal) org.mvplugins.multiverse.core.locale.message.MessageFormats a portal action as a localizable Multiverse destination description.voidshowPortalPriceInfo(MVPortal portal, org.bukkit.command.CommandSender sender) voidshowStaticInfo(org.bukkit.command.CommandSender sender, MVPortal portal, String message) Shows information about a portal using a custom, non-localized header.voidshowStaticInfo(org.bukkit.command.CommandSender sender, MVPortal portal, org.mvplugins.multiverse.external.acf.locales.MessageKeyProvider headerKey) Shows information about a portal using the given localized header.
-
Method Details
-
showStaticInfo
public void showStaticInfo(org.bukkit.command.CommandSender sender, MVPortal portal, String message) Shows information about a portal using a custom, non-localized header.- Parameters:
sender- The recipient of the portal information.portal- The portal to describe.message- The custom header text.
-
showStaticInfo
@AvailableSince("5.3") public void showStaticInfo(org.bukkit.command.CommandSender sender, MVPortal portal, org.mvplugins.multiverse.external.acf.locales.MessageKeyProvider headerKey) Shows information about a portal using the given localized header.- Parameters:
sender- The recipient of the portal information.portal- The portal to describe.headerKey- The locale key for the header.- Since:
- 5.3
-
formatActionAsMVDestination
-
formatActionAsMVDestinationMessage
@AvailableSince("5.3") public org.mvplugins.multiverse.core.locale.message.Message formatActionAsMVDestinationMessage(MVPortal portal) Formats a portal action as a localizable Multiverse destination description.- Parameters:
portal- The portal whose action should be formatted.- Returns:
- The localizable destination description.
- Since:
- 5.3
-
showPortalPriceInfo
-