Class MessageUtils

java.lang.Object
org.sgrewritten.stargate.util.MessageUtils

public class MessageUtils extends Object
  • Method Details

    • sendMessageFromPortal

      public static void sendMessageFromPortal(Portal portal, @Nullable @Nullable org.bukkit.entity.Entity receiver, String message, MessageType type)
      Send a message from this portal; triggers a StargateSendMessagePortalEvent
      Parameters:
      portal -

      The portal that relates to this message

      receiver -

      The receiving entity of this message

      message -

      The legacy serialized message to send

      type -

      The type of the message (see MessageType)

    • sendMessage

      public static void sendMessage(@Nullable @Nullable org.bukkit.entity.Entity receiver, String message)
      Send a message that does not belong to any portal, will trigger a StargateMessageEvent
      Parameters:
      receiver -

      The receiver of the message

      message -

      The legacy serialized message