mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-07-21 06:44:44 +02:00
Tidying up Permission checks for /mcrank and /mctop
This commit is contained in:
@ -32,11 +32,7 @@ public class McrankCommandAsyncTask implements Runnable {
|
||||
sender.sendMessage(LocaleLoader.getString("Commands.mcrank.Player", playerName));
|
||||
|
||||
for (SkillType skillType : SkillType.values()) {
|
||||
if (skillType.isChildSkill()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if ((sender instanceof Player) && !Permissions.skillEnabled((Player) sender, skillType)) {
|
||||
if ((sender instanceof Player && !Permissions.skillEnabled(sender, skillType)) || skillType.isChildSkill()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user