Class MessagingInterfaceSpigot

java.lang.Object
nl.pim16aap2.animatedarchitecture.spigot.util.implementations.MessagingInterfaceSpigot
All Implemented Interfaces:
IMessagingInterface

@Singleton public class MessagingInterfaceSpigot extends Object implements IMessagingInterface
Implementation of IMessagingInterface for Spigot.
See Also:
  • Constructor Details

    • MessagingInterfaceSpigot

      @Inject public MessagingInterfaceSpigot(org.bukkit.plugin.java.JavaPlugin plugin)
  • Method Details

    • writeToConsole

      public void writeToConsole(Level level, String message)
      Description copied from interface: IMessagingInterface
      Write a message to the console.
      Specified by:
      writeToConsole in interface IMessagingInterface
      Parameters:
      level - Level of importance of the message.
      message - The message.
    • messagePlayer

      public void messagePlayer(IPlayer player, String message)
      Description copied from interface: IMessagingInterface
      Send a message to a player.
      Specified by:
      messagePlayer in interface IMessagingInterface
      Parameters:
      player - The player.
      message - The message.
    • sendMessageToTarget

      public void sendMessageToTarget(Object target, Level level, String message)
      Description copied from interface: IMessagingInterface
      Send a message to whomever or whatever issued a command at a given level (if applicable).
      Specified by:
      sendMessageToTarget in interface IMessagingInterface
      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

      public void broadcastMessage(String message)
      Description copied from interface: IMessagingInterface
      Broadcasts a server-wide message.
      Specified by:
      broadcastMessage in interface IMessagingInterface
      Parameters:
      message - The message to broadcast.