Interface BetterCommandSource


public interface BetterCommandSource
A wrapped class of platform-side command source
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull net.kyori.adventure.audience.Audience
    Gets a kyori audience
    boolean
    hasPermission(@NotNull String permission)
    Checks whether this source has permission
    @NotNull Locale
    Gets a locale of source
    @NotNull SenderType
    Gets source type
  • Method Details

    • audience

      @NotNull @NotNull net.kyori.adventure.audience.Audience audience()
      Gets a kyori audience
      Returns:
      audience
    • locale

      @NotNull @NotNull Locale locale()
      Gets a locale of source
      Returns:
      locale
    • hasPermission

      boolean hasPermission(@NotNull @NotNull String permission)
      Checks whether this source has permission
      Parameters:
      permission - target permission
      Returns:
      whether this source has permission
    • type

      @NotNull @NotNull SenderType type()
      Gets source type
      Returns:
      type