mirror of
https://e.coding.net/circlecloud/YumCore.git
synced 2024-11-21 01:38:51 +00:00
feat: 优先检查命令发送者
Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
parent
029a1ee226
commit
2d55b7085f
@ -192,7 +192,7 @@ public class CommandInfo {
|
||||
*/
|
||||
private boolean check(final CommandArgument cmdArgs) {
|
||||
final CommandSender sender = cmdArgs.getSender();
|
||||
return checkArgs(sender, cmdArgs) && checkSender(sender) && checkPerm(sender);
|
||||
return checkSender(sender) && checkArgs(sender, cmdArgs) && checkPerm(sender);
|
||||
}
|
||||
|
||||
private boolean checkArgs(final CommandSender sender, final CommandArgument cmdArgs) {
|
||||
|
Loading…
Reference in New Issue
Block a user