Package org.geysermc.connector.command
Interface CommandSender
- All Known Implementing Classes:
GeyserSession
public interface CommandSender
Implemented on top of any class that can send a command.
For example, it wraps around Spigot's CommandSender class.
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringReturns the locale of the command sender.getName()booleanvoidsendMessage(String message)default voidsendMessage(String[] messages)
-
Method Details
-
getName
String getName() -
sendMessage
-
sendMessage
-
isConsole
boolean isConsole()- Returns:
- true if the specified sender is from the console.
-
getLocale
Returns the locale of the command sender. Defaults to the default locale atLanguageUtils.getDefaultLocale().- Returns:
- the locale of the command sender.
-