Skip to content

Commit

Permalink
fix: jb
Browse files Browse the repository at this point in the history
  • Loading branch information
MATRIX-feather committed Jan 13, 2024
1 parent d8ab962 commit 707e589
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
import org.bukkit.Bukkit;
import org.bukkit.command.CommandSender;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import xiamomc.morph.MorphManager;
import xiamomc.morph.MorphPluginObject;
import xiamomc.morph.messages.CommandStrings;
import xiamomc.morph.messages.MessageUtils;
import xiamomc.morph.misc.permissions.CommonPermissions;
import xiamomc.pluginbase.Annotations.Resolved;
import xiamomc.pluginbase.Command.ISubCommand;
import xiamomc.pluginbase.Messages.FormattableMessage;
Expand All @@ -21,6 +23,12 @@ public class LookupSubCommand extends MorphPluginObject implements ISubCommand
return "lookup";
}

@Override
public @Nullable String getPermissionRequirement()
{
return CommonPermissions.LOOKUP;
}

/**
* 获取此指令的帮助信息
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,6 @@ public class CommonPermissions
public final static String DISGUISE_REVEALING = PERM_ROOT + "disguise_revealing";

public final static String CHECK_UPDATE = PERM_ROOT + "check_update";

public final static String LOOKUP = PERM_ROOT + "lookup";
}

0 comments on commit 707e589

Please sign in to comment.