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 Details

    • locale

      default String locale()
      Specified by:
      locale in interface org.geysermc.geyser.api.command.CommandSource
    • sendMessage

      default void sendMessage(net.kyori.adventure.text.Component message)
    • sendLocaleString

      default void sendLocaleString(String key, Object... values)
    • sendLocaleString

      default void sendLocaleString(String key)
    • connection

      default @Nullable GeyserSession connection()
      Specified by:
      connection in interface org.geysermc.geyser.api.command.CommandSource
    • handle

      default Object handle()
      Returns:
      the underlying platform handle that this source represents. If such handle doesn't exist, this itself is returned.