Class GuildCommunicationService

Object
GuildCommunicationService
All Implemented Interfaces:
CommunicationService

public class GuildCommunicationService extends Object implements CommunicationService
Author:
maartenl
  • Method Details

    • sendMessage

      public void sendMessage(String aMessage) throws MudException
      communication method to everyone in the guild, that is active. The message is not parsed. Bear in mind that this method should only be used for communication about environmental issues. If the communication originates from a User/Person, you should use sendMessage(aPerson, aMessage). Otherwise the Ignore functionality will be omitted.
      Parameters:
      aMessage - the message
      Throws:
      MudException - if the room is not correct
      See Also:
      • invalid reference
        Person#writeMessage(java.lang.String)
    • sendMessage

      public void sendMessage(Person aPerson, String aMessage) throws MudException
      character communication method to everyone in the guild. The message is parsed, based on who is sending the message.

      Example output: <span style="color:red;">[guild] Karn: Hello, everyone!</br></span>

      Parameters:
      aPerson - the person who is the source of the message.
      aMessage - the message
      Throws:
      MudException
      See Also:
      • invalid reference
        Person#writeMessage(mmud.database.entities.characters.Person, java.lang.String)