public class SpigotCommandSender extends Object implements CommandSender
| Constructor and Description |
|---|
SpigotCommandSender(org.bukkit.command.CommandSender handle) |
| Modifier and Type | Method and Description |
|---|---|
String |
getLocale() |
String |
getName() |
boolean |
isConsole() |
void |
sendMessage(String message) |
static void |
setUseLegacyLocaleMethod(boolean useLegacyMethod)
Set if we are on pre-1.12, and therefore
player.getLocale() doesn't exist and we have to get
player.spigot().getLocale(). |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsendMessagepublic SpigotCommandSender(org.bukkit.command.CommandSender handle)
public String getName()
getName in interface CommandSenderpublic void sendMessage(String message)
sendMessage in interface CommandSenderpublic boolean isConsole()
isConsole in interface CommandSenderpublic String getLocale()
getLocale in interface CommandSenderpublic static void setUseLegacyLocaleMethod(boolean useLegacyMethod)
player.getLocale() doesn't exist and we have to get
player.spigot().getLocale().useLegacyMethod - if we are running pre-1.12 and therefore need to use reflection to get the player localeCopyright © 2020 GeyserMC. All rights reserved.