Package kr.toxicity.command
Interface BetterCommandSource
public interface BetterCommandSource
A wrapped class of platform-side command source
-
Method Summary
Modifier and TypeMethodDescription@NotNull net.kyori.adventure.audience.Audienceaudience()Gets a kyori audiencebooleanhasPermission(@NotNull String permission) Checks whether this source has permission@NotNull Localelocale()Gets a locale of source@NotNull SenderTypetype()Gets source type
-
Method Details
-
audience
@NotNull @NotNull net.kyori.adventure.audience.Audience audience()Gets a kyori audience- Returns:
- audience
-
locale
Gets a locale of source- Returns:
- locale
-
hasPermission
Checks whether this source has permission- Parameters:
permission- target permission- Returns:
- whether this source has permission
-
type
Gets source type- Returns:
- type
-