Skip to content

Commit 7680c70

Browse files
fix permission
1 parent 3255e5e commit 7680c70

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
- [x] 奖罚系统
1515

1616
## 目前已知问题:
17-
- permission即使default是true,也不会给没OP的玩家权限
17+
欢迎在Issues提出哦qwq
1818

1919
## 咕咕咕
2020

src/main/java/top/mpt/huihui/answerit/commands/impl/send.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@ public boolean onCommand(CommandSender sender, String[] args){
4848

4949

5050
public String permission(){
51-
return "answer.send";
51+
return "answer.question";
5252
}
5353
}

src/main/java/top/mpt/huihui/answerit/commands/impl/vote.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package top.mpt.huihui.answerit.commands.impl;
22

3-
import org.bukkit.Bukkit;
43
import org.bukkit.command.CommandSender;
54
import org.bukkit.entity.Player;
65
import top.mpt.huihui.answerit.commands.ICommand;
@@ -55,6 +54,6 @@ public boolean onCommand(CommandSender sender, String[] args) {
5554
}
5655

5756
public String permission(){
58-
return "answer.vote";
57+
return "answer.question";
5958
}
6059
}

src/main/resources/plugin.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ commands:
1111
description: 让玩家回答问题
1212

1313
permissions:
14-
answer.*:
14+
answer.question:
1515
description: Allows answer command
1616
default: true
17-
answerop.*:
17+
answerop.reload:
1818
description: op command
1919
default: op

0 commit comments

Comments
 (0)