public interface CommandSource extends MessageReceiver, Subject
Examples of potential implementations include players, the server console, Rcon clients, web-based clients, command blocks, and so on.
| Modifier and Type | Method and Description |
|---|---|
default Locale |
getLocale()
Gets the locale used by this command source.
|
String |
getName()
Gets the name identifying this command source.
|
getMessageChannel, sendMessage, sendMessage, sendMessage, sendMessages, sendMessages, setMessageChannelasSubjectReference, getCommandSource, getContainingCollection, getOption, getOption, getParents, getParents, getPermissionValue, getSubjectData, getTransientSubjectData, hasPermission, hasPermission, isChildOf, isChildOf, isSubjectDataPersistedgetActiveContexts, getFriendlyIdentifier, getIdentifierString getName()
default Locale getLocale()
CommandSource does have a Locale configured or does not
support configuring a Locale, Locales.DEFAULT is used.