Skip to content

Commit 414a98b

Browse files
committed
fix: Change permission declared
1 parent 82a6cc6 commit 414a98b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

common/src/main/java/io/github/mcengine/common/artificialintelligence/command/MCEngineArtificialIntelligenceCommonCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public boolean onCommand(CommandSender sender, Command command, String label, St
5252

5353
Player player = (Player) sender;
5454

55-
if (!player.hasPermission("mcengine.artificialintelligence.deepseek")) {
55+
if (!player.hasPermission("mcengine.artificialintelligence.use")) {
5656
player.sendMessage(ChatColor.RED + "You do not have permission to use this command.");
5757
return true;
5858
}

server/spigotmc/engine/src/main/resources/plugin.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ commands:
88
ai:
99
description: Get AI response
1010
usage: /<command>
11-
permission: mcengine.artificialintelligence.deepseek
11+
permission: mcengine.artificialintelligence.use
1212
permission-message: You do not have permission to use this command.
1313

1414
permissions:
@@ -18,7 +18,7 @@ permissions:
1818
mcengine.artificialintelligence.deepseek: true
1919
mcengine.artificialintelligence.reload: true
2020

21-
mcengine.artificialintelligence.deepseek:
21+
mcengine.artificialintelligence.use:
2222
description: Allows the player to start an AI conversation
2323
default: true
2424

0 commit comments

Comments
 (0)