use LiteralMeta instead of permission-less literal-names for subLiterals
All checks were successful
/ test (push) Successful in 3m22s
/ deploy (push) Successful in 1m18s

This commit is contained in:
kento2 2026-08-29 15:11:32 +02:00
parent 5fd408e69e
commit f18ce1c429
13 changed files with 68 additions and 40 deletions

View file

@ -1,11 +1,14 @@
package site.lab0x13.scrow.commands.bukkit;
import net.kyori.adventure.text.Component;
import org.jetbrains.annotations.Nullable;
import site.lab0x13.scrow.commands.PlatformAdapter;
class BukkitPlatform<C extends BukkitCommandContext<C>> implements PlatformAdapter<C> {
@Override
public boolean checkPermission(C ctx, String permission) {
public boolean checkPermission(C ctx, @Nullable String permission) {
if (permission == null)
return true;
return ctx.sender().hasPermission(permission);
}