Class LanguageChangeEvent
java.lang.Object
me.remigio07.chatplugin.api.server.event.language.LanguageChangeEvent
- All Implemented Interfaces:
ChatPluginEvent
,OfflinePlayerEvent
Represents an event called after a player's language is changed.
-
Constructor Summary
ConstructorDescriptionLanguageChangeEvent
(OfflinePlayer player, Language language) Constructs a new language change event. -
Method Summary
Modifier and TypeMethodDescriptionGets the language involved with this event.Gets the player involved with this event.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface me.remigio07.chatplugin.api.common.event.ChatPluginEvent
call
-
Constructor Details
-
LanguageChangeEvent
Constructs a new language change event.- Parameters:
player
- Player involvedlanguage
- Language involved
-
-
Method Details
-
getPlayer
Description copied from interface:OfflinePlayerEvent
Gets the player involved with this event.- Specified by:
getPlayer
in interfaceOfflinePlayerEvent
- Returns:
- Player involved
-
getLanguage
Gets the language involved with this event.- Returns:
- Language involved
-