Package org.sgrewritten.stargate.util
Class MessageUtils
java.lang.Object
org.sgrewritten.stargate.util.MessageUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
sendMessage
(@Nullable org.bukkit.entity.Entity receiver, String message) Send a message that does not belong to any portal, will trigger aStargateMessageEvent
static void
sendMessageFromPortal
(Portal portal, @Nullable org.bukkit.entity.Entity receiver, String message, MessageType type) Send a message from this portal; triggers aStargateSendMessagePortalEvent
-
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 aStargateSendMessagePortalEvent
- 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 aStargateMessageEvent
- Parameters:
receiver
-The receiver of the message
message
-The legacy serialized message
-