Interface IMessagingInterface
- All Known Implementing Classes:
MessagingInterfaceSpigot,MessagingInterfaceStdout
public interface IMessagingInterface
Interface for messaging players and writing to console.
-
Method Summary
Modifier and TypeMethodDescriptionvoidbroadcastMessage(String message) Broadcasts a server-wide message.voidmessagePlayer(IPlayer player, String message) Send a message to a player.voidsendMessageToTarget(Object target, Level level, String message) Send a message to whomever or whatever issued a command at a given level (if applicable).voidwriteToConsole(Level level, String message) Write a message to the console.
-
Method Details
-
writeToConsole
Write a message to the console.- Parameters:
level- Level of importance of the message.message- The message.
-
messagePlayer
Send a message to a player.- Parameters:
player- The player.message- The message.
-
sendMessageToTarget
Send a message to whomever or whatever issued a command at a given level (if applicable).- Parameters:
target- The recipient of this message of unspecified type (console, player, whatever).level- The level of the message (info, warn, etc). Does not apply to players.message- The message.
-
broadcastMessage
Broadcasts a server-wide message.- Parameters:
message- The message to broadcast.
-