Package org.geysermc.geyser.command
Interface GeyserCommandSource
- All Superinterfaces:
org.geysermc.geyser.api.command.CommandSource
- All Known Subinterfaces:
GeyserLogger
- All Known Implementing Classes:
GeyserSession
public interface GeyserCommandSource
extends org.geysermc.geyser.api.command.CommandSource
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 @Nullable GeyserSessiondefault Objecthandle()default Stringlocale()default voidsendLocaleString(String key) default voidsendLocaleString(String key, Object... values) default voidsendMessage(net.kyori.adventure.text.Component message) Methods inherited from interface org.geysermc.geyser.api.command.CommandSource
hasPermission, isConsole, name, playerUuid, sendMessage, sendMessage
-
Method Details
-
locale
- Specified by:
localein interfaceorg.geysermc.geyser.api.command.CommandSource
-
sendMessage
default void sendMessage(net.kyori.adventure.text.Component message) -
sendLocaleString
-
sendLocaleString
-
connection
- Specified by:
connectionin interfaceorg.geysermc.geyser.api.command.CommandSource
-
handle
- Returns:
- the underlying platform handle that this source represents. If such handle doesn't exist, this itself is returned.
-