Class DisplayUtils

java.lang.Object
org.mvplugins.multiverse.portals.utils.DisplayUtils

@Service public class DisplayUtils extends Object
  • 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

      @AvailableSince("5.2") public String formatActionAsMVDestination(MVPortal portal)
    • 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

      public void showPortalPriceInfo(MVPortal portal, org.bukkit.command.CommandSender sender)