Class LanguageChangeEvent

java.lang.Object
me.remigio07.chatplugin.api.server.event.language.LanguageChangeEvent
All Implemented Interfaces:
ChatPluginEvent, OfflinePlayerEvent

public class LanguageChangeEvent extends Object implements OfflinePlayerEvent
Represents an event called after a player's language is changed.
See Also:
  • Constructor Details

    • LanguageChangeEvent

      public LanguageChangeEvent(OfflinePlayer player, Language language)
      Constructs a new language change event.
      Parameters:
      player - Player involved
      language - Language involved
  • Method Details

    • getPlayer

      public OfflinePlayer getPlayer()
      Description copied from interface: OfflinePlayerEvent
      Gets the player involved with this event.
      Specified by:
      getPlayer in interface OfflinePlayerEvent
      Returns:
      Player involved
    • getLanguage

      public Language getLanguage()
      Gets the language involved with this event.
      Returns:
      Language involved