PlayerLanguageUpdatedEvent

Event called when the player's language is updated (from the client or from a plugin). The old and the new languages will always be one in the server's accepted ones, as indicated in the hub's configuration file (accepted-languages field).

Constructors

this
this(NodeServer server, PlayerInfo player, string lang)
Undocumented in source.

Members

Mixins

__anonymous
mixin Cancellable.Implementation
Undocumented in source.

Variables

newLanguage
string newLanguage;
Undocumented in source.
oldLanguage
string oldLanguage;
Undocumented in source.

Mixed In Members

From mixin Cancellable.Implementation

cancel
void cancel()
Undocumented in source. Be warned that the author may not have intended to support it.
cancelled
bool cancelled [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From PlayerEvent

player
const(PlayerInfo) player [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

From Cancellable

cancel
void cancel()

Cancels the event. A cancelled event is not propagated further to the next listeners, if there's any.

cancelled
bool cancelled [@property getter]
canceled
alias canceled = cancelled

Indicates whether the event has been cancelled. A cancelled event cannot be uncancelled.

Implementation
mixintemplate Implementation()
Undocumented in source.
FinalImplementation
mixintemplate FinalImplementation()
Undocumented in source.

Examples

@event changeLanguage(PlayerLanguageUpdatedEvent event) {
   log(event.player.name, " is changing language from ", event.currentLanguage, " to ", event.newLanguage);
}

Meta