refactoring of command info

This commit is contained in:
Tobias Ottenweller 2012-05-16 23:16:58 +02:00
parent afc7efcf26
commit aa520bb36e

View File

@ -14,6 +14,8 @@ public class CommandInfo extends BaseCommand
requiredParameters.add("id");
helpDescription = "Prints information about a gate";
requiredPermission = Plugin.permissionInfo;
}
@ -45,11 +47,5 @@ public class CommandInfo extends BaseCommand
else
sendMessage(ChatColor.GREEN + "this gate has no 'to' location");
}
@Override
public boolean hasPermission(CommandSender sender)
{
return sender.hasPermission(permissionInfo) || sender.hasPermission(permissionManage);
}
}