Add permissionTargeted to applicable commands

Change target perm from target.perm to x.perm.others
This commit is contained in:
AnimeGitB
2022-05-06 17:36:13 +09:30
committed by Melledy
parent 056b5b80c8
commit 80db118f72
24 changed files with 24 additions and 24 deletions

View File

@@ -17,7 +17,7 @@ import java.util.regex.Pattern;
import static emu.grasscutter.utils.Language.translate;
@Command(label = "give", usage = "give <itemId|itemName> [amount] [level]", aliases = {
"g", "item", "giveitem"}, permission = "player.give", description = "commands.give.description")
"g", "item", "giveitem"}, permission = "player.give", description = "commands.give.description", permissionTargeted = "player.give.others")
public final class GiveCommand implements CommandHandler {
Pattern lvlRegex = Pattern.compile("l(?:vl?)?(\\d+)"); // Java is a joke of a proglang that doesn't have raw string literals
Pattern refineRegex = Pattern.compile("r(\\d+)");