Class MessagingInterfaceSpigot
java.lang.Object
nl.pim16aap2.animatedarchitecture.spigot.util.implementations.MessagingInterfaceSpigot
- All Implemented Interfaces:
IMessagingInterface
Implementation of
IMessagingInterface for Spigot.- See Also:
-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
MessagingInterfaceSpigot
@Inject public MessagingInterfaceSpigot(org.bukkit.plugin.java.JavaPlugin plugin)
-
-
Method Details
-
writeToConsole
Description copied from interface:IMessagingInterfaceWrite a message to the console.- Specified by:
writeToConsolein interfaceIMessagingInterface- Parameters:
level- Level of importance of the message.message- The message.
-
messagePlayer
Description copied from interface:IMessagingInterfaceSend a message to a player.- Specified by:
messagePlayerin interfaceIMessagingInterface- Parameters:
player- The player.message- The message.
-
sendMessageToTarget
Description copied from interface:IMessagingInterfaceSend a message to whomever or whatever issued a command at a given level (if applicable).- Specified by:
sendMessageToTargetin interfaceIMessagingInterface- 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
Description copied from interface:IMessagingInterfaceBroadcasts a server-wide message.- Specified by:
broadcastMessagein interfaceIMessagingInterface- Parameters:
message- The message to broadcast.
-