1
0
mirror of https://e.coding.net/circlecloud/YumCore.git synced 2024-11-22 01:48:50 +00:00

feat: 优先检查命令发送者

Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
502647092 2016-09-26 22:48:57 +08:00
parent 029a1ee226
commit 2d55b7085f

View File

@ -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) {